Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox Hell
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Listbox Hell
Miscellaneous
Thread ID:
00258309
Message ID:
00258309
Views:
47
Someone please help! I created a list box on my form using the listbox builder. It is based on the clients table.

Bound column = 1
Bound to = .F.
Number of Elements = 0
Rowsource = clients.clientcode, clientname, tabledir
rowsourcetype = 6 - fields

It fills the listbox just fine. When I go to use the data selected by the user, it's a mess.

I have the user select a client in the list box (or multiple clients) and then hit a command button to process the data based on clients selected.

The button has one command: Do RunRpt. The first line of code in the runrpt program says ListCnt = 0. This is supposed to be used as a counter to loop through the listbox items. As soon as the program hits this line, I get "Cannot Access Selected Table." If I go into the debugger at this time and look at Thisform.listclients.list(anynumber) it is blank. It seems to lose all knowledge of ever being filled.

I'm going crazy. Of course I needed to have this done yesterday. Any help would be greatly appreciated.

Thanks.

Jill
Next
Reply
Map
View

Click here to load this message in the networking platform