Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to detect an open dialog box in Outlook

Status
Not open for further replies.

StewartUK

Programmer
Feb 19, 2001
860
GB
Part of my emailing program has the lines
Code:
oInspector = oMailItem.GetInspector()
oInspector.Activate()

If the user has a dialog box open when the 2nd line tries to execute I get an error:
A dialog box is open. Close it and try again...

I couldn't find in the object model how to detect for an open dialog. Any ideas anyone?

Thanks,

Stewart
 
Stewart

As White605's link suggests, use TRY AND CATCH to detect if it is opened, and if it is CATCH it. Or depend on the version of VFP use ON ERROR.



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top