Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to populate a listbox
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Trying to populate a listbox
Miscellaneous
Thread ID:
01086295
Message ID:
01086295
Views:
66
In my form I have this example for testing: but it never gets populated, can you tell me why?
DIMENSION gaMyArray(5)
FOR gnCount = 1 to 5  
   STORE gnCount TO gaMyArray(gnCount)
  NEXT 
thisForm.List1.RowSourceType = 5
thisForm.List1.RowSource = "gaMyArray"
thisform.list1.additem(gaMyArray(1,1)) 
thisform.list1.additem(gaMyArray(1,2)) 
thisform.list1.additem(gaMyArray(2,1)) 
thisform.Refresh
thisform.list1.Requery()
?thisForm.List1.Value
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Next
Reply
Map
View

Click here to load this message in the networking platform