Converts a string variable value into an object reference.
$variablename.method
variablename | literal | The variable containing the name of an object. An error will occur if this argument does not correspond to a valid object name. |
method | literal | A method for the type of object. An error will occur if this argument does not specify a valid method for the object referenced by variablename. |
Some methods return the name of an object as the result. In order to call methods of this object, the name must be prefixed with $ as shown in the example below.
Example:
// create WaitImage and set name to a variable
System.CreateImage MyImage 620 460 20 20 "wait.gif"
System.WaitImage MyImage
set name = System.WaitImage
// display the Src value (the following two lines are functionally equivalent)
alert MyImage.Src
alert $name.Src