AddGlobalRef

PowerBuilder Native Interface

IPB_Session interface:

AddGlobalRef method

Description

Adds a global reference to the specified PowerBuilder object.

Syntax

AddGlobalRef (pbobject  obj)

Argument

Description

obj

A valid PowerBuilder object handle

Return Values

pbclass or null on error.

Examples

This example checks whether a return value is null, and if it is not, adds a global reference to it to the session:

if (ci-> returnValue-> IsNull())
   ret_val = 0;
else
   {
   ret_val = ci-> returnValue-> GetObject();
   Session -> AddGlobalRef(ret_val);
}

See Also

RemoveGlobalRef