Is there a way to dynamically construct a script statement and then execute that statement?

Devin Asay devin_asay at byu.edu
Fri Feb 1 17:55:01 EST 2002


At 12:21 PM -0600 2/1/02, Gary Dennis wrote:
>I want to construct a script statement dynamically  (something like the
>following) and then  "EXECUTE" that statement.  If you are familiar with
>REXX, this language has an INTERPRET command that permits this sort of
>thing.  Is there a way to do this in REV?
>
>Thanks
>
>on mouseup
>    put "aVariablename April" into somestring
>    get item 1 of somestring
>    put it into zVarName
>    get item 2 of somestring
>    put it into widget
>
>    put "put" && quote & widget & quote &&  "into" && zVarName into execvar
>     -- the constructed statement  at this point should be:
>     --   PUT "April" into aVariableName
>
>     ******* This is where I fall off the table
>
>end mouseup
>

do execvar
-- 
Devin Asay
Humanities Research Center
Brigham Young University



More information about the Use-livecode mailing list