Getting livecode to execute a statement contained in a strin
Posted: Tue Jul 01, 2014 7:53 am
Hi,
I have a piece of code that constructs a Livecode statement in a string that I would then like to execute, but I don't know how to do it or if it is possible
My code is as follows:
put "btnContinue" into myBtn
put "Continue to next screen" into myToolTip
put "set the ToolTip of btn " & myBtn & " to " & quote & myToolTip & quote into myCmd
myCmd
I was hoping that "myCmd" would execute the string contents which are:
set the ToolTip of btn btnContinue to "Continue to next screen"
The reason why I would like to do this is to have different tooltips for different buttons set up in an array so that I can change them dynamically depending on the status of the application.
Any assistance would be appreciated
Cheers
bergsy
I have a piece of code that constructs a Livecode statement in a string that I would then like to execute, but I don't know how to do it or if it is possible
My code is as follows:
put "btnContinue" into myBtn
put "Continue to next screen" into myToolTip
put "set the ToolTip of btn " & myBtn & " to " & quote & myToolTip & quote into myCmd
myCmd
I was hoping that "myCmd" would execute the string contents which are:
set the ToolTip of btn btnContinue to "Continue to next screen"
The reason why I would like to do this is to have different tooltips for different buttons set up in an array so that I can change them dynamically depending on the status of the application.
Any assistance would be appreciated
Cheers
bergsy