Two things come to mind. First, you can only return a value from modal forms. Second, how do you call the form? You should call the form like this:
DO FORM MyForm TO lcDoWhat
This should do the trick. After the form is released, lcDoWhat contains the value of the form property you returned in the form's unload.
Daniel