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

Using arraylists to assign values to an array – PB Docs 2019 – PowerBuilder Library

Using arraylists to assign values to an array – PB Docs 2019

Using arraylists to assign values to an array

General information

In PowerBuilder, an arraylist is a list of values enclosed in
braces used to initialize arrays. An arraylist represents a
one-dimensional array, and its values are assigned to the target array
using the rules for assigning arrays described in Assigning one array to
another
.

Examples

In this declaration, a variable-size array is initialized with
four values:

In this declaration, a fixed-size array is initialized with four
values (the rest of its values are zeros):

In this declaration, a fixed-size array is initialized with four
values. Because the array’s size is set at 4, the rest of the values
in the arraylist are ignored:

In this declaration, values 1, 2, and 3 are assigned to the
first column and the rest to the second column:

If you think of a three-dimensional array as having pages of
rows and columns, then the first column of the first page has the
values 1 and 2, the second column on the first page has 3 and 4, and
the first column on the second page has 5 and 6.

The second column on the second page has zeros:


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