AddLocalRef

PowerBuilder Native Interface

IPB_Session interface:

AddLocalRef method

Description

Adds a local reference to the specified PowerBuilder object.

Syntax

AddLocalRef (pbobject  obj)

Argument

Description

obj

A valid PowerBuilder object handle

Return Values

pbclass or null on error.

Examples

This example defines functions that add and remove local references:

void MyPBNIClass::reference()
{
   d_session->AddLocalRef(d_pbobject);
}

void MyPBNIClass::unreference()
{
   if(d_pbobject != NULL)
      d_session->RemoveLocalRef(d_pbobject);
}

See Also