You have declared oObj as a Local Parameter in Testit() which I would expect to overide the "global" oObj. Remove the LPARAMETERS statement and declare oObj as PRIVATE ( PUBLIC is not needed ) or declare oObj as LOCAL and pass it to Testit() in the parameters list.
Bill
>Inside the function TestIt, I get "oObj is not an object"
>
>
>
>PUBLIC oObj
>
>oObj = CREATEOBJECT("MyObj")
>testit()
>
>FUNCTION testit()
>LPARAMETERS oObj
>
> ? oObj.Test1
>
>RETURN
>
>
>
>DEFINE CLASS MyObj AS Custom
>
> HIDDEN PROC Test1
> RETURN "Hello"
> ENDPROC
>
>ENDDEFINE
>
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.