Is it possible that whatever the dtr object is - is defined in the Prev class library?
As an aside, I would change my methodology and not SET CLASSLIB TO and RELEASE CLASSLIB in your code like that. Just set your class libraries in your main program and be done with it.
You might want to check to see if "PREV" $ UPPER(SET("CLASSLIB)), but I would not go through the overhead of loading and unloading the library.
>i have this in my printform:
>
>Dtr.Hide()
>SET CLASSLIB TO Prev ADDITIVE
>oPreviewFrm=CREATEOBJECT("PrintPreview")
>RELEASE CLASSLIB Prev
>REPORT FORM &cReport ENVIRONMENT NOCONSOLE PREVIEW IN WINDOW PrintPreview
>oPreviewFrm=.NULL.
>Dtr.Show()
>
>
>on "Dtr.Show()" it says "Uknown object".. what's wrong? i used this in printform1 and there's no error..
>
>my visual foxpro is acting a bit odd now..
>
>or am i just missing something?
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown