Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a grid using a cursor that is created at runtim
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00044365
Message ID:
00044370
Views:
35
>>I am using VFP 3.0 for Windows.
>>
>>How do I create a grid based on a cursor that is created (using an SQL-select) in the form's init method?
>>
>>Is this the best way to display to cursor, should I be using a list or something else?
>
>SELECT.... ....
> TO CURSOR mycursor
>
>Thisform.mygrid.recordsource = 'mycursor'
>thisform.refresh

Evan,
If you put the SELECT... into the LOAD method instead of the INIT method you can set up your grid in advance and there is no need to do it programmatically at run time.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform