Jump to content

_IEError


Jury
 Share

Recommended Posts

I've tried this again and this doesn't seem to work and I'm not sure what is the best way to do this or that there may be hidden problems. 

Depending on which of three databases the user has chosen  (each having its own WindowTitle) I want to attach to that WindowTitle.

Local $oIE = _IEAttach("Deportation Decisions")
If _IEErrorNotify() Then 
Local $oIE = _IEAttach("Refugee/Protection Decisions")
EndIf
If _IEErrorNotify() Then 
Local $oIE = _IEAttach("Residence Decisions")
EndIf

Thanks,

jury

Edited by Jury
Link to comment
Share on other sites

Calling _IEErrorNotify() is not the proper way to check if the _IEAttach was successfully. You need to be checking the value of @error.

Depending on which of three databases the user has chosen  (each having its own WindowTitle) I want to attach to that WindowTitle.

 

How does the user specify the desired database?

Edited by Danp2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...