Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array in Listbox
Message
From
29/01/2003 20:19:22
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00746966
Message ID:
00746979
Views:
23
Hi Mel,

Sounds like you have THISFORM.pfgReportFrame.Page1.Lstlistboxcustom.NumberOfElements = 2

Hope this helps,
Gavin.

>I am populating a ListBox with an array, but I can only get either 1 or 2 rows to appear in the listbox, but not the 3rd or 4th row. Anyone have a clue what might be wrong?
>
>If I set DIMENSION THISFORM._myrptarray(1,2) then just the first row appears.
>If I set DIMENSION THISFORM._myrptarray(2,2) the 2nd row appears. However, DIMENSION THISFORM._myrptarray(3,2) or DIMENSION THISFORM._myrptarray(4,2) only gives me the first two rows.
>
>The array is:
>
>DIMENSION THISFORM._myrptarray(4,2)
>THISFORM._myrptarray(1,1) = '1st Listings'
>THISFORM._myrptarray(1,2) = 'LIST1'
>THISFORM._myrptarray(2,1) = '2nd Listing'
>THISFORM._myrptarray(2,2) = 'LIST2'
>THISFORM._myrptarray(3,1) = '3rd Listing'
>THISFORM._myrptarray(3,2) = 'LIST3'
>THISFORM._myrptarray(4,1) = '4th Listing'
>THISFORM._myrptarray(4,2) = 'LIST4'
>
>THISFORM.pfgReportFrame.Page1.Lstlistboxcustom.COLUMNCOUNT  = 1
>THISFORM.pfgReportFrame.Page1.Lstlistboxcustom.ROWSOURCE = "THISFORM._myrptarray"
>THISFORM.pfgReportFrame.Page1.Lstlistboxcustom.ROWSOURCETYPE = 5
>THISFORM.pfgReportFrame.Page1.Lstlistboxcustom.LISTINDEX = 1
>
>Mel Cummings
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform