Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Blank grid
Message
From
06/04/1999 08:00:02
 
 
To
05/04/1999 20:14:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00205422
Message ID:
00205528
Views:
17
>>>I just found one interesting grid 'feature' and it might be helpful for all struggling with grids. You obviously know that grid used to become blank when its recordsource is overridden. Also, you probably know that one of ways to fight it is to base grid on permanent cursor and refill it using ZAP/APPEND. So far, so good, last hour I found that even this grid can become blank, if ZAP issued when focus is on the grid and new recordsource RECCOUNT() is more than previous recordsource RECCOUNT(). I understand that it sounds crazy, but it's really so, at least for grid I have right now :-).
>>>However, if focus shifted to another control (setfocus) right before ZAP, then grid is Ok, so it's still workable.
>>
>>All in all, probably easier to save the formatted grid as an object then .RemoveObject()
>>...fix cursor...
>>.AddObject()
>>
>>No?
>
>It depends. You suppose to set recordsource after you AddObject and at this point you can get all troubles back.

True. I was talking about a single use object (a no-no) where the .RecordSource was fixed in the object.
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform