Yes, execution will stop on DO FORM because the form is modal
>I have a series of forms. I use a cursor to determine which have been opened. The user can navigate using next and previous buttons.
>
>The forms inherit navigation controls from a VCX form.
>
>The user clicks next/prev. If a form hasnt been opened I run:
>
>thisform.hide
>DO FORM n
>
>If it is open, I run:
>thisform.hide
>NewForm.show
>
>If I open form 1, hide it, do form2, hide it, and show form one, things get strange.
>
>After the show form2 runs, the form comes up, but clicking on the next button does nothing, the code doesnt fire. the other buttons work. Also, the debugger stops after the show, the next line button is disabled.
>
>The forms are all modal. I think it stops because it never finished executing the Next button code, and doesn't want to run that code again.
>
>thanks,
>
>Hans
--sb--