tarniadi wrote:
> Can someone tell me hhat's the problem with the below error messege:
> 
> "Cannot make a visible window modal"

The problem is exactly what it says it is.

You probably have the form's Visible property set to True in the Object 
Inspector. Set it to False.

> wich appears when I want to ShowModal a form that I created in the 
> previous line as follows:
> 
> frmFirstEditForm := TfrmFirstEditForm.CreateWithParameters
> (SomeWord,SomeEnumeratedType,Self);
> frmFirstEditForm.ShowModal;
> frmFirstEditForm.Close;

There's no need to call Close. ShowModal only returns after the form is 
already closed. You should call Free, though. Use a try-finally block.

-- 
Rob


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to