Hi Thomas,
beg your pardon, but this example will fail. You can not add a
object.property to an other object via aDDProperty.
Anyway I understand your point.
Agnes
>Hi Agnes,
>
>>if yo go for the TYPE instead of PEMSTAT why not VARTYPE?
>
>Tore gave you the main reason. Also, if you plan to use addprop, the variable name is usually
>already in a string, so reusing that string like
>lcProp = "_screen.Height"
>if TYPE(m.lcProp)=="U"
> adpproperty(_screen, m.lcProp, 100)
>endif
>makes the code less brittle than typing it with and without " or going other dynamic ways -
>only a slight benefit, but I am prone to "finger stuttering" - see the line inside the if ;-)
>
>regards
>
>thomas
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]