Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if an object exists
Message
De
09/05/1998 13:35:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/05/1998 13:25:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00098172
Message ID:
00098304
Vues:
39
>Hello Cetin,
>
>>>I didn't clarify, you're right.I meant type() and isnull() would be used to check
if type("oControl")="O" and !isnull(oControl)
Cetin
>>Ooops. Reading other replies I also learned that TYPE([oControl.Name]) = "C" was not enough and my oldie type()+isnull() is still the way to go despite some milliseconds (hope saves with failing in type() part).
>Why do you think so? I'm sure that checkin for Name property is enough to be
>sure about object's existence...
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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform