Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to populate a listbox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01086295
Message ID:
01086562
Views:
14
>DIMENSION aContents[ 5 ]
>
>FOR lnI = 1 TO 5
>aContents[ lnI ] = "A"+ALLTRIM(STR(lnI))
>ENDFOR
>WITH Thisform.List1
>  .RowSourceType = 5
>  .RowSource = "aContents"
>  .Requery()
>  .ListIndex = 1
>ENDWITH
Your array went out of scope. That's why we both suggested to use a property of the form or listbox.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform