Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Records not changing in listbox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040929
Message ID:
01040940
Views:
11
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform