Hermann,
SetObjRf.prg allows you to set and object reference to a property or variable. I thas the added functionality of returning a reference to any existing object without creating a new one.
You pass it up to four parameters
toObject an object reference
tcName the name of the object
tvClass the class that the object should be created from
tvClassLibrary the class lib that the class is found in
Example syntax:
* Form Init
This.MenuMgr = SetObjrf(.NULL.,"MenuMgr","MenuMgr","Menu.vcx")
after this code the form's MenuMgr property will have an object reference to a MenuMgr object.