Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array in Listbox
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Array in Listbox
Miscellaneous
Thread ID:
00746966
Message ID:
00746966
Views:
51
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
Next
Reply
Map
View

Click here to load this message in the networking platform