Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do I have a parent?
Message
De
26/06/2000 09:35:45
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00384583
Message ID:
00384592
Vues:
28
Hi Bill,
Why not use:
TYPE("This.Parent") = "O"


>What is the best way to tell if an object has a parent? If you check the VARTYPE(This.Parent) you get a FoxPro error if the parent doesn't exist. The PEM exists but you can't check its VARTYPE. The only KLUGE I have been able to come up with is to check if the UPPER of the Object Hierchary = the UPPER of the Object Name. Is there a better way?
Charlie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform