Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding non-inherited user defined properties
Message
 
 
À
14/01/2009 01:33:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01373439
Message ID:
01373468
Vues:
22
>Hi,
>
>I have a class hierarchy of several levels:
>Class A (I create 10 properties in it)
>--- Class B (I create 9 new properties in it) whcih is subclass of A
>------ Class C (I create 8 new properties in it) whcih is subclass of B
>...
>--------- Class N whcih is subclass of M
>
>Say in Class C, in one of its method code, how do I find a list of those user defined properties created locally (but not inherited from the parents, that is only the 8 properties as listed above)?
>
>I try both:
>
>LOCAL aProp(1)
>AMEMBERS(aProp, THIS, 0, [#+GU]) // No "I"
>
>or
>
>LOCAL aProp(1)
>AMEMBERS(aProp, THIS, 0, [#+GUI]) // with "I"
>
>
>But they both return same thing, I always get a list of all properties including (properties from class B and class A) the parent's
>
>Would anyone kindly point me out what is wrong in the way I use the AMEMBERS function or could it not possible to achive what I want with the AMEMBERS?

Check if Re: Determining non-default properties Thread #1360388 may help.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform