>I am running a bunch of code under the click method, and from this method I am calling another form using a DO. In the help it is stated that when you run a DO control is passed to the new form and the calling form waits to complete itself until control is passed back. This is not happening for me.
>
In order for this to happen, the form that you call must be modal - set the WindowType property of the form that you call to 1 (Modal).
>Here is my code.
>
>IF (lncount > 1)
> thisform.hide
> DO form frmlistl.scx WITH UPPER(lntemplast) thisform.show()
> goto lnrecno
>ENDIF
>
>The program is going on to the lnreco and giving me a syntax error because it is a NULL value. Can anyone tell me what is going on here??? Any help would be apprecated.
>
Where is lnRecNo set? If you set it in the called form, it goes away when the form method that defines it goes away; if you want the form to return it, you must use a modal form and return the value, and you need to add a TO clause to catch the value when the form is exited.
>Thanks