Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor in a grid
Message
From
07/03/2007 10:35:22
 
 
To
07/03/2007 10:26:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01201093
Message ID:
01201514
Views:
32
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform