IsFieldArray

PowerBuilder Native Interface

IPB_Session interface:

IsFieldArray method

Description

Returns true if the field of the specified object is an array; otherwise it returns false.

Syntax

IsFieldArray(pbclass cls, pbfield fid)

Argument

Description

cls

A valid class handle for the class whose field is to be accessed

fid

The field ID of the specified object

Return Values

pbboolean.

Examples

This code tests whether the field identified by fid is an array, and if so, gets the array value:

fid = session->GetFieldID(cls, "arr_val");
if (session->IsFieldArray(cls, fid))
{
   arr_val=session->GetArrayField(myobj, fid, isNull);...

See Also