LT_execute
Execute a LabTalk script by temporarily setting this page as the active page.
BOOL LT_execute(LPCSTR lpcszLabTalkStr, int wCntrl = 0, int* pnErr = NULL, DWORD dwOptions = 0)
Returns TRUE on successful exit and FALSE on failure.
EX1
int Page_LT_execute_ex1() { // Output the template name for all the graphs in the project. foreach(GraphPage gp in Project.GraphPages) gp.LT_execute("win -g; type \"%h uses template %a\";"); return 0; }
Execute a LabTalk script temporarily setting the page object as the active page. This command is equivalent to LabTalk's "win -o" command. The original active page is restored after the script completes execution.
origin.h