Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing a objects existence
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00366567
Message ID:
00366607
Vues:
16
>if type('myobject') == "O" AND !isnull(myobject)
>myobject.destroy()
>endi

Eric,

Calling the destroy method does not do anything but run the code. You can also reduce the IF statement for all but SCATTER NAME objects by doing;
IF TYPE("MyObject.Name") = "C"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform