Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I find out a cursor exists ?
Message
 
À
03/06/1997 08:51:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00034540
Message ID:
00036228
Vues:
36
>=TYPE('myform.dataenvironment.cursor23') && may return "O" if object exists

Edward,

A better check would be;

=TYPE('myform.dataenvironment.cursor23.Name') && which will be "C" if the object exists

because, if the object ever existed the check for type O fails due to the fact that the property remains type O even though its value is NULL. Checking the Name property of an object for type C will work because if the value of the roperty is NULL the name property does not exist.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform