Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I determine if a cursor was created?
Message
 
 
To
10/10/2001 23:21:46
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00566770
Message ID:
00566781
Views:
14
>Dumb question,.. other than a SELECT, how would I create a dummy cursor?

See CREATE CURSOR command in Help.

>
>>>I have a routine that uses a SELECT to create a cursor. If the cursor isn't created because the source file was missing, it is causing my GRID with recordsource/controlsource set to the cursor elements to fail. Can I put something in the GRID.INIT or GRID.LOAD to abort the grid if the cursor wasn't created?
>>
>>You can return .f. from the grid's init and it would not be created. It doesn't have load event. However, it would not work anyway, so you have to create a dummy cursor in the form's load with the expecting structure of the real cursor.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform