The LOCAL variables are only visible within the procedure/function/method in which they are created. What was your point in creating myObject outside of the procedure?
>I have a PRG that the object goes out of scope when a procedure is called. Do I need to pass it in somehow?
>
>
>LOCAL myObject
>
>MyObject = CREATEOBJECT("MyClass")
>
>DO MyProcedure
>
>RETURN
>
>PROCEDURE MyProcedure
>
> * MyObject is not available
>
--sb--