Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh a query
Message
From
22/05/2002 09:43:49
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
22/05/2002 04:09:12
Hisham Serry
Al-Bahar United Company
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00659458
Message ID:
00659881
Views:
22
Hisham, don't actually put any code into the Refresh() event itself, use something like the following in your code after the Table is updated...

Say your grid is called MyGrid, and this is code from the Click event of the Save commandbutton:
Proc Click()
Tableupdate()
THISFORM.MyGrid.Refresh()
...and you could force a grid reconstruction (if needed) with:
Proc Click()
TableUpdate()
WITH THISFORM.MyGrid
 .RecordSource=""
 .RecordSource="MyQuery.qpr"
ENDWITH
The second method may cause you to lose specific header settigns and maybe column width info, etc., so see if a regular Refresh() call works first.

HTH,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform