assign by reference (arrays)?
    Robert Brenstein 
    rjb at rz.uni-potsdam.de
       
    Thu Mar 21 06:18:01 EST 2002
    
    
  
>  >
>>  Hi Ben,
>>
>>  Pardon a Foole's dumb question; but what are you trying to
>>  accomplish?  Can you give me an example of how this is done in
>>  another programming environment?
>>
>
>I believe Ben is thinking about variable variables, I would find it useful
>too(a feature request...)
>
>for example, on php programming, you can have a variable:
>
>$variable = 10;
>
>You put the name of a variable into another variable:
>
>$variablename = "$variable1";
>
>An operation like:
>
>$$variablename++;
>
>Will increment the value contained into $variable1
>
>The $$ sign specifies the operation must be performed on the variable whose
>name is contained into $variablename
>
>Hope this was clear.. I'm sure not!!!
>
>       Giulio
You can do it with the "do" command.
put "add 1 to" into add1
put "variable1" into variablename
do (add1 && variablename)
Robert
    
    
More information about the use-livecode
mailing list