Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form refresh not keeping up with table changes
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00343411
Message ID:
00343715
Views:
20
Try modifying your Refresh to only the grid, or better yet the specific textbox in the grid that is updated.
ThisForm.myGrid1.Column1.myTextBox1.Refresh() is way faster than ThisForm.Refresh()
HTH

>I have a simple form showing the progress of the reindexing of 83 tables. The form contains a grid with the name, description of each table, number of records to index and number of indexes for each table with a field that gets changed to "Done" when that table is done. It also contains two edit boxes with one showing "Indexing table n of n2 tables" and the other showing "Creating index n of n2 indexes." The index program updates the form as it goes along and does Thisform.Refresh() after each update.
>
>Problem: The form does not stay current. If I simply do a wait window nowait with some of the info the wait window box runs right along with the program. The form will just sit and stare at me and then jump maybe four or five tables at a time. The faster the computer the more records it jumps. It seems that VFP only wants to update the form when it feels like it and not every time I do a refresh(). I tried doing the form modless and updating from the prg and doing the form modal with the prg in a method in the form. Same result or maybe the modless works a little better.
>
>What am I missing here?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform