Loading...
 

GrabObject

GrabObject

GrabObject

Description:

From the location in string form, you get the corresponding object or collection from the database with the help of this statement.

In contrast to the function GrabObject from CX_DB_UTILITY this command can also be used for persistent collections. However, if you want to have the object for an embedded collection, the function GrabObject is preferable.

Transient Collections cannot be loaded via GrabObject, as there is no type information for the address in the case of transient addresses and each transient address is interpreted as an object.

Caution: When specifying a transient address, the specified memory area is interpreted as an object of type CX_CLASS . The system cannot ensure that there is really an object at the specified location and specifying any memory address can lead to crashes.

Code example:
"<0|12|0|7af6|10000>" GrabObject // Layer 1, segment 12, cluster 0, offset 0x7af6 "{000000000B925F60}" GrabObject // Transient object at address 0x000000000B925F60
Stack
Stack Description
Stack(In) STRING location
Stack(Out) OBJECT | COLLECTION | ZERO the referenced object or collection