Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if an object exists
Message
 
À
10/05/1998 06:21:21
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00098172
Message ID:
00098385
Vues:
37
>After some chat with you, now I also agree that TYPE([oControl.Name]) = "C" is enough. As I learned :
>- Scatter name oName wouldn't be treaded like a real object.
>- And with that exception Name property cannot be prevented to be seen.
>Cetin

I'm mostly curious, and totaly new to the Universal Thread, but wouldn't it be better to test TYPE didn't return an "O", like the following?

IF TYPE([oControl.Name]) != "O"
*the objet does not exist
*create it if you need it
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform