Executing script from script

<< Click to Display Table of Contents >>

Navigation:  Executing script >

Executing script from script

Script can create and run another scripter instance.

Example:

 

 P := THtScriptParser.Create('Result:=x+100;');

 P.Variables['x']:=100;

 P.Run();

 ShowMessage(P.Variables['Result']);