C.D.
You have everything right, but one small detail. You don't need the
classlib. part of your createobject.
>frmDetail = createobject("classlib.myclass")
frmDetail = createobject("myclass")
>However, I got this error msg when it tried to create the object from the class, "Error instantiating the object", saying from the Help that "The server for the object is not registered properly, resources are low, or a required .DLL isn’t present."This means that VFP is looking for a COM style of object registered with the system. It's because you used
classlib.myclass which means a COM ibject to Windows.