Albert,
You can use macro substitution instead.
IF THISFORM.AddObject(lcObjectName,"lblStepXLabel")
loNewObject = THISFORM.&lcObjectName
ELSE
ENDIF
Kurt
>Hi Everyone,
>
>Is there a better way to grab an object reference to a newly added object to a form without using EVAL() to get it? e.g. here is the code:
>
>THISFORM.AddObject(lcObjectName,"lblStepXLabel")
>
>STORE EVALUATE("THISFORM." + lcObjectName) TO loNewObject
>
>
>Albert