Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blank grid
Message
De
06/04/1999 08:00:02
 
 
À
05/04/1999 20:14:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00205422
Message ID:
00205528
Vues:
16
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform