Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing the listbox or not
Message
From
02/12/2005 09:10:57
 
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:
01074164
Message ID:
01074186
Views:
15
>I have a table called jobqueue. When a user wants to print a report or run a task I write a record to the jobqueue table which stores the type, username, datetime and status. I have created a form with a listbox which is bound to this table. Do I have to have some kind of timing event so that the listbox refreshes say every 2 seconds?
>
>Many Thanks

Neil

If you think the source will be updated so frequently, I guess yes.
Issue a Thisform.lstMyList.Requery().

Not sure what'll happen if the list is being requeried while you're dropping down the list. Maybe in the GotFocus() of the listbox you could have code to suspend the timer, so it won't be "tampered with" while you're accessing it.

HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform