Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_MemberData scope
Message
De
06/10/2007 08:10:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01259143
Message ID:
01259146
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>I have just forayed into using _MemeberData. I need to know if the scope of defined favorites and property names are valid for the current class-level and it's child classes.

MemberData has a really strange inheritance scheme. For each attribute, the following happens:

1) the current item is checked. If it specifies the attribute, that's the value used and the search stops.

2) the inheritance hierarchy is searched, so that it you've defined the attribute for an ancestor class, that's used and the search stops.

3) the _containership_ hierarchy is searched, so that if you've defined the attribute for a containing object, that's used and the search stops.

4) the global MemberData store (in the FoxUser table) is searched. If there's a value for the attribute there, it's used and the search stops.

5) the default value for the attribute is applied.

In addition, at any level, you can specify Override, so that steps 2, 3 and 4 aren't performed and you go right to step 5.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform