Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generically redirect specific properties from parent to
Message
De
18/05/2006 13:34:06
 
 
À
18/05/2006 09:14:59
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:
01123315
Vues:
19
Hi Malcolm :)

>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!).

Really? SetProp? hehe...

>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 :)

I had thought about that, however I couldn't find more idea (yet) or maybe I wasn't trying hard enough <g>. Meanwhile, I hope someone can come up with more idea :-)

Regards
Herman
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform