Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00748450
Message ID:
00748476
Vues:
25
>If I run a select statement and return more than one record to a cursor how, using the scan/endscan statement, can I loop through that cursor and add the value to a listbox?
>
>Thanks!

John, what is the RowSource for the listbox?
For example, you can use listbox.AddItem() or AddListItem() methods is the source is 0-None. For the array source you need to redimension the array, assign your new value to the array element. If it's an updateable cursor or table you can use APPEND BLANK and REPLACE, or INSERT INTO [listboxsource]

In any case do not forget to issue
listbox.Requery()
listbox.Refresh()
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform