Jump to content
Sign in to follow this  
Jury

_IEError

Recommended Posts

Jury

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

Share this post


Link to post
Share on other sites
Danp2

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

Share this post


Link to post
Share on other sites
Jury

Thanks Danp2 - they click on a link on the page which navigates (i.e. doesn't open a new window) to the chosen database.

Share this post


Link to post
Share on other sites
Jury

so I call this function like this?

$oIE = _IEGetActiveTab()

Share this post


Link to post
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
Sign in to follow this  

×