Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0a Listbox from an array
Message
From
17/04/1998 11:38:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
VFP 5.0a Listbox from an array
Miscellaneous
Thread ID:
00092903
Message ID:
00092903
Views:
93
I'm not sure if anyone out there has run into this, or if its something that I'm doing wrong. But, when I try to use an array as the rowsource of a listbox in VFP 5.0a it displays fine when you run the app from within VFP. But, when you compile it to an EXE and execute it, the listbox is empty. The array is there, its just that it doesn't display within the listbox.

I've followed step-by-step from Microsoft's Knowledge Base article #Q129329 and it produces the same problem. To give a short synopsis of the article, it says to:

1) Set the array as a new property of the form.

2) Create the array from a SQL Select making sure to reference it as an object of the form within the forms Load method.

3) Set the RowSourceType as 5-Array

4) Set the RowSource as the array making sure to reference it as an object.

This works fine as long as you only run the program within VFP, but as a compiled app the listbox is empty, though the array exists and has data.

Is this another problem like having to have the main screen visible to use the Report Preview? I've tried that and it didn't help. So, if someone has seen this and solved it, please let me know what the answer is!

Thanks
Joe Pace
Next
Reply
Map
View

Click here to load this message in the networking platform