Loading...
 

CallWeak

CallWeak

CallWeak(access expression, function), CallWeak(function)

Parameters: an access expression, name of a function

Stack
Stack Position Description
Stack(In) Top one item
top one Parameter n
top two Parameters n-1
. . . . . .
Top-n Parameter 1
Stack(Out) Return value

A vector is passed as parameter as follows:

Stack
Stack Position Description
Stack(In) Top one item
top one Parameter n
. . .
]
Element m
Element m-1
. . .
Element 1
[
. . .

and similarly a vector appears as a return value:

Stack
Stack Position Description
Stack(In) Top one item
top one Parameter n
top two Parameters n-1
. . . . . .
Top-n Parameter 1
Stack(Out) Top ]
top one Element 1
top two Element 2
. . .
Top-n Element n
top n-1 [

The member function specified in the first or second parameter is called, exactly as it is done with the Call statement. The difference to Call is that a ClassiX® exception within the function call does not lead to abort with an error message, but the result INVALID appears on the stack. The error message can then be read from the error memory of the system via CX_SYSTEM_OBJECT։։GetLastError.

209360 also ObjectStore exceptions can be handled with CallWeak.

Note: The counterpart to the CallWeak statement for calling a function within an access expression is the Specifier weak.

Related topics