Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5: How to check to see if the object exists in the me
Message
De
06/05/1997 00:50:57
 
 
À
05/05/1997 23:56:57
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00030931
Message ID:
00030935
Vues:
38
>I want to use AddObject to add a object on my form. How do I know if the object is already added?
>
>Thanks in advance.
>
>Jim

If the name of your object is MyObject, than:

if type("ThisForm.MyObject") = "O" and (ThisForm.MyObject <> NULL)
*-- The object already exists
else
*-- The object doesn't exists
endif

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform