Sorin,
>lcObj = "obj" + ALLTRIM(STR(counter))
>=Addobject(lcObj , "objclass"),
loObj = eval( "this." + lcObj )
with loObj
.Property = value
endwith
>I've always used to add objects with names built programmaticaly (like obj1, obj2, etc.) as follows:
>lcObj = "obj" + ALLTRIM(STR(counter))
>=Addobject(lcObj , "objclass"),
>then to reference it i do this:
>lcObj = "This.objname"
>loObj = &lcObj, and further reference loObj...
>I wonder if there is a better way to reference the newly added object, than macro substitution