Loading...
 

Get

Get

Get(access expression), Get(STACK )

Parameter: an access printout

Stack
Stack Description
Stack(In) one object
Stack(Out) the selected data field

Get "extracts" a data field reached via the access expression from an object. In contrast to Copy, this statement gives direct access to the original. An error message appears if the access expression leads to a non-existent data field. If the access expression cannot be followed up further because

  • of a pointer with value = NULL
  • a function that returns NULL
  • of a slot not available in the object,

this is how Get INVALID brings INVALID onto the stack.

This is a difference to Call:
Call returns NULL if the called function returns NULL. Get(Function(...)) converts the NULL of the function into an INVALID.

Note:
With Get you cannot access elementary data types . The sense of this restriction is that elementary data (character string, integer values, ...) cannot be changed detached from the object in the database.
With a persistent object, a transaction begins.