The GetObjectRef function retrieves the integer value of the instance reference.
Syntax
Integer Global.GetObjectRef(
Pointer obj,
Integer realObject = true)
Pointer obj,
Integer realObject = true)
Parameters
| obj | Reference of the object. | Required |
|---|---|---|
| realObject true, false | The real object is the last derived object. | Optional |
Return value
The GetObjectRef function returns the integer value.
If the object is not valid, the GetObjectRef function returns 0.
Example
Integer ref
Table table new
ref = GetObjectRef(table)
Table table new
ref = GetObjectRef(table)