Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I determine if a cursor was created?
Message
De
10/10/2001 23:21:46
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00566770
Message ID:
00566779
Vues:
14
Dumb question,.. other than a SELECT, how would I create a dummy cursor?

>>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.
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform