Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I determine if a cursor was created?
Message
 
 
À
10/10/2001 23:13:57
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:
00566776
Vues:
10
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform