Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do I have a parent?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00384583
Message ID:
00384594
Vues:
22
>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?

IF TYPE("this.parent") = "O" && parent exists
...
ENDIF
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform