SetArrayItemValue
Description
Sets the value of an array item to the value of an
IPB_Value.
Syntax
|
1 |
SetArrayItemValue( pbarray array, pblong dim[ ], IPB_Value* src) |
|
Argument |
Description |
|---|---|
|
array |
A valid pbarray structure in which you want to set |
|
dim |
A pblong array to hold the indexes of each |
|
src |
The value to which the array item is to be |
Return value
None.
Examples
This code sets the value of each item in an array:
|
1 2 3 4 5 6 7 |
for( i=1; i <= bound; i++) { dim[0]= i; ipv = Session -> AcquireArrayItemValue(refArg, dim); Session -> SetArrayItemValue(*i_array, dim, ipv); Session -> ReleaseValue(ipv); } |
Usage
The SetArrayItemValue method does not verify that the datatype of
the replacement value matches the datatype of the original value.
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest