See faq #7921 How can I make my form Modal/Modeless on the fly.
>Hi,
>I have 2 forms that I would like to make modal when they are called from another form but if it's called from the menu system it would be modeless.
>
>So what I did is on the first form is on the INIT method I put
>
>if pcount() > 0
> *!* Put the form modal
> thisform.windowstype = 1
> *!* Other code follows to prefill the form and wait for the user to save
>endif
>
>This works fine on the first forms but on the second form I get a error 1743 - the property is read only. Any ideas?
>
>Then I though of maybe using THISFORM.SHOW(1) to make the form modal but I am not able to RELEASE the form after the user has saved the changes. I can only hide it.
--sb--