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

Ken Norris (dialup) pixelbird at
Sat Feb 2 03:25:01 EST 2002

on 2/1/02 2:40 PM, Jeanne A. E. DeVoto at jeanne at wrote:

> 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
Except that the call is for 'item' when it should be 'word' the way the
script is constructed, eh (there are spaces instead of commas in the posted

Ken N.

More information about the Use-livecode mailing list