Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying data in a listbox
Message
From
07/09/1999 11:32:39
 
 
To
07/09/1999 10:33:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00261939
Message ID:
00261957
Views:
20
>Hi,
> I have a form with a listbox which need to load its data from a SQL query. I have wrote the SQL in the initEvent and put the result in a cursor called 'lista'.After that I've described the rowsourcetype as 'alias' and in the rowsource I wrote lista.code, name but the data is not displayed in the listbox, what am I doing wrong?
>I will appreciate your help as soon as possible. Thanks!

A couple of comments. First it looks like you want to use a RowSourcetype of "Fields" if you're going to set the RowSource to "lista.code, name". Second, when are you setting the RowSource? It will have to be set after the cursor is created. If changes are made to the cursor, issue MyCombo.Requery() to refresh the data.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform