Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if an object exists
Message
De
11/05/1998 01:29:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00098172
Message ID:
00098426
Vues:
36
>>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
I'm not new to UT but reading the whole thread you would see how much should I be confused with this. In the end I think I'll take the long way and use type()+isnull() to check. For now I'll think names can be protected or hidden. At least now I'm sure type()+isnull() has correct info.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform