Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Parent property and PEMSTATUS
Message
De
14/08/2005 07:55:32
 
 
À
13/08/2005 18:51:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01040740
Message ID:
01040766
Vues:
9
IF PEMSTATUS(m.this,"Parent",5) ; && Expected .F.

Interesting. I would never have thought to use the PEMSTATUS() function like this. If I want to check to see if the current object has a parent, I would do it like this:
IF TYPE( "This.Parent.Name" ) = "C"
Same for ActiveForm,ActiveControl ....

And I have always checked for the existence of Activeform and ActiveControl using the TYPE() function as illustrated above. It would never have occurred to me to try to use PEMSTATUS() for something like this...

Aside from this issue, the GETPEM() function is a design time function that should be used to help you create builders. Therefore, using it in a class definition the way that you are is not the correct way to use the function....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform