Top level forms don't respect the Modal setting of forms. To make a top level form modal, you need to call its SHOW(1) (Note that you must pass 1 as a parameter.)
>I wrote a program and converted it to an .exe. Everything runs beautifully in the foxpro window, but when I run it outside of the fox window (_Screen.visible = .F.) as an .exe I have a problem. I am calling a Modal form with the showwindow at 1 and Desktop = T and when I call it the calling program continues on, without waiting for the varible to be passed back from the Modal form.
>
>Here is the call.
>
>DO FORM newconfs\frmsearch TO lcpass
>
>Then it continues on without waiting for lcpass.
>
>The showwindow for the calling form is set at 2. I tried setting it as a 1 with desktop = T, but that REALLY didn't work.
>
>Like I said everything works fine in the foxpro window, but not from the .exe
>
>Whats wrong??
>
>Thanks for the help.