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
07/05/1997 21:37:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00030931
Message ID:
00031257
Vues:
68
>>There's one problem with this: if Thisform.MyObject doesn't exist at all, I believe you'll generate an error. In addition, this code is not as clear as to intent, making maintenance more difficult in the long run.
>
>David,
>
>Nope, you just get U as the return type for undefined.
>
>JimB

I think David is somehow right. The code loses in readability. But I like it.

It may also give you a problem on a long run if MS decides that Name is no longer a property for all objects. After all, is not specified that all objects have it. :)

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

Click here to load this message in the networking platform