Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generically redirect specific properties from parent to
Message
 
À
17/05/2006 11:41:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01122795
Message ID:
01123396
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Hey Malcolm,

There is no This_ASSIGN. But you could do this using This_ACCESS. All you have to do is return the object you want the property to apply to:
FUNCTION This_ACCESS(lcMember)

DO CASE
CASE INLIST(UPPER(lcMember), "FONTNAME","FONTSIZE","FONTBOLD","etc...")
   RETURN This.lblMyLabel
CASE INLIST(UPPER(lcMember), "FORECOLOR","BACKCOLOR","BACKSTYLE","etc...")
   RETURN This.shpMyShape
OTHERWISE
   RETURN This
ENDIF

ENDFUNC
This works if the user is ACCESSing or ASSIGNing a value to the property.

I hope this helps,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform