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:
00343770
Views:
23
Hi Joe,

I see what you mean. Before VFP can take ahold of any resources it needs for the ThisForm.Refresh(), the routine (prg or method) is already on its next index operation and tying things up, or something like this is occurring.

Hopefully, the single object.Refresh is fast enough.

Cheers,

>Hi Colin.
>
>While this is good advice (i.e. if you know what controls need to be refreshed, just run the refresh method in those controls, not all of them) in general, I think it might not help in this case. I think the problem lies in the fact that VFP is getting a lot done before it gets around to refreshing *anything*. But when it actually does get around to refreshing *anything*, your suggestion will make that procedure (refreshing) happen faster.
>
>But it is definitely worth trying, and therefore a good suggestion IMHO. And I hope it works...
>
>Take care,
>Joe
>
>>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
Reply
Map
View

Click here to load this message in the networking platform