>I have a form that calls a subform. The subform that is called returns a value. When tracing the program in the unload event the return value is .F.. After the form is released and the code continues to process the return value is .T. From the unload event of the subform I single stepped in the debugger and when the debugger code pointer gets to the line after I called the subform the value that was returned is true. This doesn't make a whole lot of since to me at least.
>
>Any ideas would be great!!
>
>Jim
Firstly, it works only for modal form instanciated with DO FORM ... TO lRetvalue
Also, if your app has mechanism to communicate between objects (forms) then you even don't need in literal return value. Instead you may reset properties of one form from another form.
Edward Pikman
Independent Consultant