Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Set<type>ArrayItem – PB Docs 2019 – PowerBuilder Library

Set<type>ArrayItem – PB Docs 2019

Set<type>ArrayItem

Description

Assigns a value to an array item of a specific type.

Syntax

Argument

Description

array

A valid pbarray handle.

dim

A pblong array to hold indexes of each dimension.
The number of dimensions must equal the number of dimensions of
the array.

value

The new value of the array item.

Return value

PBXRESULT. PBX_OK for success.

If the index exceeds the bounds of a bounded array, it returns
PBX_E_ARRAY_INDEX_OUTOF_BOUNDS.

If the data passed in does not match the datatype of the array, it
returns PBX_E_MISMATCHED_DATA_TYPE.

Examples

This example creates a new unbounded simple array. In the FOR
loop, application-specific code (not shown here) gets array values,
which are then added to the array using SetPBStringArrayItem:

Usage

This method assigns the IPB_Value pointed to by the value argument
to the array item in the same way that the IPB_Value Set<type> method sets a
value.

See also

Get<type>ArrayItem

GetArrayInfo

GetArrayItemType

GetArrayLength

IsArrayItemNull

NewBoundedObjectArray

NewBoundedSimpleArray

NewUnboundedObjectArray

NewUnboundedSimpleArray

ReleaseArrayInfo

SetArrayItemToNull

SetArrayItemValue


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x