Oops, stupid of me. I believe this is the exact way how I solved this problem in the past. The form should be set modal in designer and could be changed on the fly. I read Nick's FAQ, because I remembered, that there was some problem here.
But it applies to form based on class, scx based forms work just fine with the technique you described.
Thanks. Next time I would think a little bit longer before posting a message :)
>Nadya,
>What I usually do is something like this:
>
>*-- form's init()
>LPARAMETER tlModal
>
>IF tlModal
> This.WindowType = 1
>ELSE
> This.WindowType = 0
>ENDIF
>
>HTH
>
>>Hi everyone,
>>
>>I have a form scx (not class based). I want to change its modality depending on parameter passed into the main program. How can I do it? I've read Nick's FAQ about it, but it's still unclear for me.
>>
>>Thanks in advance.
If it's not broken, fix it until it is.
My Blog