Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying data in a listbox
Message
De
07/09/1999 11:32:39
 
 
À
07/09/1999 10:33:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00261939
Message ID:
00261957
Vues:
19
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform