REF |
reference = REF( varname AS VARIANT ) AS REFERENCE
Assigns a REFERENCE (pointer) to a variable or array and it can be used as the referenced variable or array.
Note that once a REFERENCE has been referenced it will be used as the referenced variable and must be unreferenced first before it can be referenced to another variable or array again.
Examples:
DIM kalle as INTEGER DIM r AS REFERENCE r = REF( kalle ) r = 123 ' This is the same as kalle = 123 UNREF r
|