Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking wehter an object exists?
Message
De
02/03/2001 08:18:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00481248
Message ID:
00481293
Vues:
11
>Is there any way to check wether an object exists? f.e, How can i knbow wether the object thisform.txtlabel exists on my form or not?
>
>tia,
>
>
>Vincent

Vincent,
There are many ways. 2 generic ones used frequently :
1) llObjExist = type('oObj')='O' and !isnull(oObj)
2) llObjExist = type('oObj.name')='C'
Second sounds to be easier but not all objects have name property.
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