Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generically redirect specific properties from parent to
Message
From
18/05/2006 16:07:35
 
 
To
18/05/2006 09:14:59
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01122795
Message ID:
01123385
Views:
20
>Hi Herman!
>
>Thank you for our ideas and code. I came up with a similar solution using a function called, amazingingly enough, SetProp! (brilliant minds think alike!).
>
>For those following this thread, I don't use Herman's SETALL() line because I want to redirect specific parent properties to specific child object properties.
>
>The function technique works ok, but I'm still looking for a transparent way to do the same thing via regular assignment statements.
>
>Instead of:
>
>SetProp( This, "fontname", "arial" )
>
>I would like to do:
>
>This.FontName = "Arial"
>
>... and have a This_Assign and/or BindEvent() lookup the property being assigned and determine which (if any) child object property should be updated.
>
>Hope this makes sense to someone besides me :)
>

Malcolm

Need more details, if you have a FontName property in the container and you change its value you want all contained objects that have the same FontName property to update its value too?

Or you want to be able to choose which contained objects should "bind" to the container property with the same name?

Carlos

PS: Check your mailbox
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform