Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing cursors in a GRID
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00107566
Message ID:
00107572
Views:
14
I've seen a problem similar to this. IF you are re-creating the cursor each time you switch the year, odds are that's your problem. If in your grid you have the RecordSource for the grid itself and the ControlSources for the columns setup as a cursor that's getting recreated you'll have this problem. What happens is when FoxPro re-creates the cursor there must be a moment it time that the cursor doesn't exist at all, thus freaking out the grid becuase now it's RecordSource and ControlSources don't exist at all. The trick I've used in the past (I admit it's a bit cheezy, but it works) is in the code to change all the controlsources and RecordSource to equal '' (blank), then recreate the cursor, then change all the ControlSources back to what they were.
ICQ 10556 (ya), 254117
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform