PBArrayInfo structure

PowerBuilder Native Interface

PBArrayInfo structure

Description

PBArrayInfo is a C++ structure used to hold information about arrays.

Table 7-6: PBArrayInfo members

Member

Type

Description

ArrayBound

Local struct declaration

Structure of type pblong containing the boundaries (upperBound, lowerBound) of a dimension.

BoundedArray

Enum data

Used in arrayType to identify that the array is a bounded array.

UnboundedArray

Enum data

Used in arrayType to identify that the array is an unbounded array.

arrayType

Enum type

Used in IPB_Session::GetArrayInfo to identify the datatype of the array. Do not set this variable manually.

valueType

pbuint

The datatype of array items. Set it to pbvalue_type if it is a simple type, or pbobject if the item is a class or structure.

numDimensions

pbuint

Number of dimensions of the array. An unbounded array can have only one dimension. The lower bound is one.

bounds

ArrayBound[]

Array bounds declaration array, used in a bounded array.