<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2>Hi Paul,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2>You are probably better off with some of the other
scripting suggestions, but your post reminded me of a unit I often use in my
apps to parse and execute mathematical expressions. It supports all common trig
functions, and math operators. I can't just post it here as I notice it still
bears a copyright Borland 1985 at the top of the unit!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2>It originally came as part of one of the Borland Turbo
Pascal Toolbox add-ons - the sample spreadsheet I think.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2>It's been very handy over the years especially in
converting some of my old Clipper and dBase apps which commonly used such
powerful things as Macros and CodeBlocks which could be stored as data, then
retreived and executed at runtime.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718333709-26072006><FONT face=Arial
color=#0000ff size=2>Steve</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=718333709-26072006></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>I<SPAN class=718333709-26072006> remember when....
don't get me started.</SPAN></FONT></FONT></FONT><BR></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Paul A Norman
[mailto:paul.a.norman@gmail.com] <BR><B>Sent:</B> Wednesday, 26 July 2006
11:25 a.m.<BR><B>To:</B> NZ Borland Developers Group - Delphi
List<BR><B>Subject:</B> [DUG] exectuteString command?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Dear all,</DIV>
<DIV> </DIV>
<DIV>With the recent enhancements to Delphi, has TurboPascal introduced any
sort of exectuteString command as in some dialects of Basic?</DIV>
<DIV> </DIV>
<DIV>I.e. a string is parsed and then if the interpreted string is validly
executable it is directly carried out as if it was part of the original
exe.</DIV>
<DIV> </DIV>
<DIV>In the days when we used to have to do things like program C64 and C128s
for accounts/ invoices and wages, it was a very useful facility found in
SuperBase.</DIV>
<DIV> </DIV>
<DIV>Paul</DIV>
<DIV> </DIV>
<DIV> </DIV><BR>
<P><FONT size=2>--<BR>No virus found in this incoming message.<BR>Checked by
AVG Free Edition.<BR>Version: 7.1.394 / Virus Database: 268.10.4/396 - Release
Date: 24/07/2006<BR></FONT></P>
<P><FONT face=Arial size=2></FONT></P></BLOCKQUOTE></BODY></HTML>