Replace in Vars's

Dar Scott dsc at swcp.com
Thu Feb 26 17:00:45 EST 2004


On Thursday, February 26, 2004, at 02:45 PM, hershrev wrote:

>  I need to replace oneVar with anotherVar in athirdVar  ?

Do you meant replacing all substrings equal to the value of oneVar with 
the value of anotherVar in some variable athirdVar?

    replace oneVar with anotherVar in athirdVar

See 'replace'.

Do you mean changing the value of a specified element in an array to 
that of another element?

    put athirdVar[anotherVar] into athirdVar[oneVar]

Dar Scott



More information about the use-livecode mailing list