Sergey the Idea was also to show Mario how e can use an variable in to access the object you are right that if we are going to change a lot o properties then the evaluate of the expression to a variable and then using that variable is more efficient.
>>Hi Mario do the following:
>>
>>ThisForm.addobject(variable-name,classname)
>>ThisForm.&variable-name..Caption = 'Changed Caption'
>>ThisForm.&variable-name..Top = 100
>>...
>>
>
>Hi Alex,
>
>There is no reason to use macro substitution in this case. See my other message in this thread.
Alexandre Palma
Senior Application Architect