Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if a form property exists
Message
 
 
À
01/12/2000 14:31:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00443856
Message ID:
00448280
Vues:
15
>>I note you said "usually". You do have to be aware of VARTYPE() and objects, that the object better exist or you'll get an "Alias not found error".
>
>Well, hopefully "This" will be available :-) But I understand what you mean. For the record, Type() does not work that way, but it can return 'O' for properties that don't actually hold objects anymore, so when checking for object properties, VarType() is faster and less typing.

The only exception for this that I know of is the Parent property of a form. There was a thread about this in the last week. You have to use TYPE() for this or VFP will throw an error. FWIW, it works if you use the same function in a form control.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform