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 13:03:44
 
 
À
06/05/1997 00:50:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00030931
Message ID:
00031028
Vues:
68
>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

Syntax check:

Can you say "x = .NULL."? My equivalent, which I know works is:

IF TYPE("ThisForm.MyObject") = "O" .AND. IsNull(ThisForm.MyObject)
*-- The object already exists
ELSE
*-- The object doesn't exists
ENDIF
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform