Tech Tip: Pointing to a variable
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: June 27, 2002
Compatibility: 6.5.x , 6.7.x, and 6.8.x
There are two ways you can define a pointer to a variable:
1. You can use the command Get pointer, which returns a pointer to the variable.
C_POINTER(vPointer)
C_TEXT(Variable1)
Variable1:="Hello"
vPointer:=Get pointer("Variable1")
2. You can also define a pointer to a variable by using a predefined pointer symbol (->).
C_POINTER(vPointer)
C_TEXT(Variable1)
Variable1:="Hello"
vPointer:=->Variable1