Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining if a Property Exists
Message
 
À
25/07/2001 09:45:15
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00534933
Message ID:
00534970
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>>You can also used TYPE().
? TYPE('oObj.Property') && Returns "U" if it doesn't exist
>
>PemStatus() or Type()... Is there advantage of using one over the other?

If you're simply trying to determine whether or not the property exists, TYPE() takes less code.

If it's more than, say you want to determine if the property is user defined or inherited, then PEMSTATUS() would be what you want to use.

Another option is AMEMBERS(). You could use that also.

As Dragan might say, "With Fox you can do anything three ways, or not at all".:-)
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform