GetAt

PowerBuilder Native Interface

IPB_Arguments interface:

GetAt method

Description

Returns a pointer to the IPB_Value interface representing an argument whose order in the list of arguments is indicated by a specified index.

Syntax

GetAt ( pbint index )

Argument

Description

index

A valid index into the PBCallInfo structure

Return Values

IPB_Value*.

Examples

In the following code fragment, GetAt obtains the first value in the PBCallInfo structure. The value has been passed in from the calling function.

PBCallInfo ci;
LPCSTR myPBNIObj = NULL;
IPB_Value* pArg0 = ci->pArgs->GetAt(0);
if (!pArg0->IsNull())
{
   pbstring t = pArg0->GetString();
   if (t != NULL)
      myPBNIObj = session->GetString(t);
}

See Also