Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor in a grid
Message
De
07/03/2007 10:35:22
 
 
À
07/03/2007 10:26:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01201093
Message ID:
01201514
Vues:
30
>1. The initial dummy select - doesn't that belong in a different method? Otherwise it would be getting created again, anyway, every time you call the method to refresh the grid with the newly selected data?
>
>The initial select is not a dummy select. You need to SELECT ... INTO CURSOR READWRITE NOFILTER in the load of your form so you can bind the grid

Well I interpret it as a dummy in that it creates the cursor for reuse.
The main thing is that's done once, at form init or load, rather than being lumped in with the rest of the safe select code as in Andy's paper, and thus done again and again.

>
>2. You talk about the extra code necessary (presumably to "shape" the grid.) but where does the grid formatting, and field-to-grid column allocation happen, if you don't select the data in the order in which it should appear on the grid.
>
>ZAPping the grid's recordSOurce foes not close it. So if you use the "safe select" method described in Andy's blog, the grid does not lose any formatting.

Aye, but as the cols don't have a .controlsource, isn't it down to the order of select of the csr to determine which fields go where in the grid? otherise you're back to coding the grid set-up.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform