Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Find' screen w/ remote view
Message
 
 
To
22/10/2001 13:16:38
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00568532
Message ID:
00571959
Views:
37
>Mark,
>
>How do you populate your grid? Do you not instantiate the grid until the results are returned (different pages on a page frame?)? I've been working on a class that uses spt, but I'm having trouble with the grid.
>
>Thanks

At first there is a dead grid on the results form with no RecordSource or any other proerties defined for the grid. Of course the user never sees this because in the INIT of the form, I call my Query form if no Cursor exists. My Query form is modal and has a private DS. From the INIT of the results form, I issue a -- DO FORM SQLQuery to lcSQL. If lcSQL comes back empty, I return .F. and the form never shows. Otherwise, I just start populating the grid properties as needed. Generically, I just show every field in the cursor except my PK field. Since I always name my PK field KeyID in all my tables, this is easy to do.

On the results form, I also have a QUERY button so the user can always do another query.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform