Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Records not changing in listbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01040929
Message ID:
01040940
Vues:
10
>Thanks Borislav
>
>Would you use SQL so that a requery can be used to refresh the listbox at any time
>
>Thanks

Yes, Something like:
thisform.MyListBox.RowSourceType = 3 && SQL Statement
thisform.MyListBox.RowSource     = "SELECT (field list here) FROM Mytable WHERE MyField = ?SomeVar INTO CURSOR crsMyTable"
SomeVar = 0 && or and other data type you need
thisform.MyListBox.Requery()

*** Then where you change the record and want to requery list box:
SomeVar = MyParentTable.FieldYouWant && or and other data type you need
thisform.MyListBox.Requery()
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform