Alistair,

> Hi. I have an online registration proc, which gets the user to enter some
> info, then executes another routine as below. Problem is, there is no wait
> for the external dialog (the mail routine) to complete. It works, but is
> messy. Can anyone suggest how to hold it till the mail box has minimized.
> ExecuteFile('mailto:[EMAIL PROTECTED]?subject='+regstring, '', '',
> SW_SHOWNOACTIVATE);
> Application.HelpJump('OnlineOrder');//this executes immediately.

If you use ShellExecute, you can get hold of the process handle, then use
WaitForSingleObject.  What the function returns, the process is done.

Hope this helps.
-----------------------------------------------------
Dennis Chuah, BE (Hons) [mailto:[EMAIL PROTECTED]]
Manager, Product Development
Contec Data Systems Ltd. [http://www.contecds.com]
tel: +64-3-3580060 ext-775 fax: +64-3-3588045



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to