Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to executing string as procedure

i made button component in runtime and i want every button clicked there executing unique procedure.

for example

exec('showmessage('+quotedstr('hello word')+');');

How to executing string as procedure in delphi 7 like eval in php or livebinding in delphi xe3?

like image 277
AsepRoro Avatar asked Jul 29 '26 18:07

AsepRoro


1 Answers

Delphi has no such facility. It's a compiled language, and the compiler only runs on the developer's system; you're not allowed to distribute the compiler with your program.

Instead, you can use any of a number of scripting tools, such as DWScript. It supports a language syntax similar to that of Delphi. It has some built-in functions, and you can define others from the host program to expose in the script environment.

like image 66
Rob Kennedy Avatar answered Aug 01 '26 11:08

Rob Kennedy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!