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

Jeanne A. E. DeVoto jeanne at
Fri Feb 1 17:44:07 EST 2002

At 10:21 AM -0800 2/1/2002, 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?

Yes: the "do" command.

>   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

Here you'd have

  do execvar

You can even build the string in the command line if you prefer:

  do "put" && quote & widget & quote &&  "into" && zVarName

Jeanne A. E. DeVoto ~ jeanne at
Runtime Revolution Limited - Power to the Developer!

More information about the Use-livecode mailing list