Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prob with ListBox & Array...
Message
From
15/04/2002 22:43:55
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Prob with ListBox & Array...
Miscellaneous
Thread ID:
00645275
Message ID:
00645275
Views:
38
I have a listbox that the record source is from an array... a two dimensional array. I want the list box to show just the first item (column) in each row of the array.

The data is as follows:
arrMake(1,1)="FORD"
arrMake(1,2)=5
arrMake(2,1)="CHEV"
arrMake(2,2)=2
arrMake(3,1)="DODGE"
arrMake(3,2)=6
I have the following set for the listbox:
lstMake.BoundColumn=2
lstMake.BoundTo=.T.
lstMake.ColumnCount=1
lstMake.rowsource='arrMake'
lstMake.rowsourcetype=5
When I run the form, the listbox is entirely blank... EXCEPT... the data seems to be there!! I just can't see it. I can use the arrow keys and move up and down... there are exactly 3 rows.

What am I missing?
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Next
Reply
Map
View

Click here to load this message in the networking platform