How can I execute a line of code stored in a string?



Hi everbody!

I need a Delphi function which I put a string and execute that...

exemple:

strCode := ' edit1.Text := strName ' + ';' ;

ExecuteString(strCodigo);

I don't know if is possible to do in Delphi...

This function is like "Eval" in PHP and JavaScript,
"Xecute" in COS and Mumps
and
"EbExecuteLine" of the Visual Basic that needs "vba6.dll"

.



Relevant Pages

  • Re: How can I execute a line of code stored in a string?
    ... I need a Delphi function which I put a string and execute that... ... put the indexed controls in a list and call elements in the list. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Searching in byte buffer
    ... similar to searching for a substring within a string, however I want to perform search on a byte buffer (array) for series of bytes. ... Also, it needs to be a fast search, as search is performed on bytes retrieved from soundcard buffer. ... Is there a Delphi function that I can use? ...
    (alt.comp.lang.borland-delphi)