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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With