PBBoundedObjectArrayCreator class

Description

The PBBoundedObjectArrayCreator class is used to create an object array.

Methods

PBBoundedObjectArrayCreator has two methods:

GetArray

SetAt

GetArray

Description

Obtains an array that has been created.

Syntax

GetArray()

Return value

pbarray.

Examples

This example sets the values in an array and then uses GetArray to obtain the array:

PBBoundedObjectArrayCreator<pbvalue_string>
ac(session);
for (i=0;i<itemcount1;i++)
{
ac.SetAt(i+1,iarg[i]);
}
out_array = ac.GetArray();

See also

SetAt

SetAt

Description

Sets the array item at the specified dimension.

Syntax

For arrays of a specified ValueType:

SetAt(pblong dim[], ValueType v)

For string arrays:

SetAt(pblong dim[], LPCTSTR string)
SetAt(pblong dim[], pbstring string)

Argument

Description

dim

The dimension of the array item to be set

v

A ValueType defined in pbtraits.h

string

A string of type pbstring or LPCTSTR


Return value

None.

Examples

This method is included in the example for GetArray.

See also

GetArray