Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generically redirect specific properties from parent to
Message
 
To
17/05/2006 11:41:23
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01122795
Message ID:
01123396
Views:
22
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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform