No, top-level forms can not be modal. VFP coerces the WindowType to Non-modal during the instantiation process.
You can make a Desktop form modal and set its ShowWindow property to 1 - Show in Top-level.
HTH.
>Hello, everybody.
>
>I think I'm dumber that usual today (it is that possible???).
>
>I'm building a little monitor application. It is based on a top-level form with a timer that runs diffferent processes from a list.
>
>I put a button there that opens a configuration form (top-level, too) that give me access to that list, etc.
>
>Now I want to know if the user confirmed or cancelled changes (at the form close). So I need to return a flag from this second form.
I did set it as modal, but when I do:
>
>
do form config with llOk
>
>I get the infamous error: "The TO clause can only be used with modal Forms".
>
>Do I have some way of receiving a parameter, better than passing a reference to the first form and switching a flag in it from the second one? I don't like this kind of coupling very much.
>
>Thanks in advance, people.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao