可以考虑DelphiWebScript,可以执行delphi语法的程序,我正在用,感觉不错。
免费的,有源码好像vcl.vclxx.com有下载,叫做dws*.zip,也可以到它的网站上下载,网址...(等我查以下)

解决方案 »

  1.   

    记得csdn2000上delphi第二张上也有,似乎在科学计算里
      

  2.   

    有一个M$的Script控件,系统自己带的。
      

  3.   

    M$的要不得,它只和VB兼容,如一些Delphi的函数就用不起。
      

  4.   

    看一看或许有帮助:Thank you for your interest to Expression parser 1.60
    ------------------------------------------------------DESCRIPTION
    ------------
    Expression parser 1.60 is a set of two components - TExprParser and
    TEPUserLib, for evaluating expressions at run time. 
    TARGET ENVIRONMENT
    ------------------
    Delphi 1.0, Delphi 3.0 and Delphi 4.0
    FEATURES
    ---------
    Supports using of user-defined variables, function arguments,
    all arithmetical and logical operators, build-in functions,
    register your own build-in functions, library of user-defined functions
    and aliases editable both at design and run time, on event 
    evaluated variables and functions.
    Library also can be loaded and saved in INI file at design and run time.
    Supports using of date and boolean constants and functions.
    Returns a list of used variables by the given expression and can 
    set them values before evaluating.
    Has functions to perform checking for a valid syntax of the given expression, 
    using of known variables and functions, and arguments mismatching, 
    without evaluating the expression with actual arguments and variable values.There is NO 256-bytes LIMIT of the length of the expressions (in Delphi 1.0),
    NO LIMIT of complexity, NO LIMIT of function arguments.
    No need to re-parse expressions (or library functions) explicitly,
    it is done automatically if the conditions on which they are
    last parsed are changed.
    Supports names and identifiers with characters in a range #192..#255
    for some language character sets.
    Enhanced error handling.
    Full help and demo included.Additionally there is a free Expression builder set of 8 components 
    which helps you to build custom expression builder dialogs, 
    to enable the user to enter a syntax valid expressions, checks them, 
    and stores in a dataset, and solves them later.To learn more about that, look at:
         http://members.xoom.com/sparksoft/
    SHAREWARE LIMITATIONS
    ----------------------
    A Shareware version has following limitations:
    1. A "nag" screen with copyright information.
    2. A library can not contain more than three user functions.
    INSTALLATION 
    -------------DELPHI 1.0 installation:To install the components:
    1. Unzip all files in a directory of your choice.
    2. Start Delphi and choose install components option. Press the Add button
       and choose EXPRSREG.DCU file in a browse dialog.
    3. After successfull installation, the components TExprParser and TEPUserLib 
       will appear in "Expressions" palette.To bind the help file EXPARS.HLP with Delphi Help system, do following:
    1. Copy EXPARS.HLP file in \DELPHI\BIN directory.
    2. Copy EXPARS.KWF file in \DELPHI\HELP directory.
    3. Start HelpInst program from Delphi's program group. Open DELPHI.HDX file
       from \DELPHI\BIN directory and add the new keyword file EXPARS.KWF from
       \DELPHI\HELP directory. 
    DELPHI 3.0 and 4.0 installation:To install the components:
    1. Unzip all files in a directory of your choice.
    2. Start Delphi and open EXPRS_D3.DPK (for Delphi 3.0) or EXPRS_D4.DPK (for Delphi 4.0)       package file. Press Install button from package window.REGISTRATION
    -------------
    You have to register to use Expression parser in commercial applications.
    To register you have to pay==============   REGISTRATION FEE - $35 =================Registration gives you following benefits:  1.  Copyright message box will not appear.
      2.  No limitation of three user-functions.
      3.  As registered user you can inform me about any bugs found and
          receive fixed versions of Expression parser in some days WITHOUT ANY CHARGE.
          
    You can buy a sources after additional payment of USD 60, or you can register and 
    buy sources for total USD 95.IF YOU PLAN TO USE EXPRESSION PARSER IN COMMERCIAL PURPOSES PLEASE CONTACT ME!IF YOU HAVE ANY BUSINESS PROPOSALS FEEL FREE TO CONTACT ME.E-mail:
      Todor Marholev  :  [email protected] information about these components can be found atURL:
      http://members.xoom.com/sparksoft/You can register and purchase these components atURL:
      http://www.shareit.com/programs/103500.htmFor more about registration see REGISTER.TXT file ...
      

  5.   

    API 有没有此类解析或计算表达式的函数?
      

  6.   

    delphi本身好象就有一个这样的函数,名字记不起来, 是*equel*
      

  7.   

    再查查,是啥名字?
    API中有没有?
    delphi中有没有?
      

  8.   

    呵呵,BCB啊,什么都想用API?
      

  9.   

    API那是大杂烩,说不定能捡到未发现的好东东,
    有功者送高分!!!!!!!!!!!!!!!!!!
      

  10.   

    找到一个叫calc.zip的动态计算表达式的控件,很好!