FILL array dynamically

User avatar
sal21
PlatinumLounger
Posts: 4346
Joined: 26 Apr 2010, 17:36

FILL array dynamically

Post by sal21 »

in label in red square is the the max element of array (the value are dinamic), i can have also 3, 12, 11, ecc.... in this case i have 20 in label, Image sco.jpg

i need to fill and array with the tree column in red.

only a problem.... image sco1.jpg

if the item in listview are minus of 20 fill the item of array, in the case of isco1.jpg, with 0 from 16 to until 20

similar for co1.jpg:

elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
elem1 elem2 elem3
0 0 0
0 0 0

elem1 elem2 elem3

note:
but consider 20 is the max value 20 of the array.
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78402
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: FILL array dynamically

Post by HansV »

Do you fill the control from a recordset? If so, it would be easier to populate the array directly from the recordset.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4346
Joined: 26 Apr 2010, 17:36

Re: FILL array dynamically

Post by sal21 »

HansV wrote:
01 Apr 2022, 18:51
Do you fill the control from a recordset? If so, it would be easier to populate the array directly from the recordset.
OK TKS