Jump to content
Sign in to follow this  
tommytx

Is there a correct way to make sure an _IE command will work before using it?

Recommended Posts

tommytx

I am getting a lot of errors like 1102 Error: Variable must be object type... it is usually the explorer complaining. Can I do something like the below for each command before use to make sure it won't fail or does even the IF activate the command and will cause an error if it fails...

If _IEGetObjById ($oIE1, "theTime") then

$dog = _IEGetObjById ($oIE1, "theTime")

endif

Will this prevent an error or no....

It calls out the variable must be an object a lot... and is aggravating me to death..

Share this post


Link to post
Share on other sites
somdcomputerguy

You probably want to use a function like this, IsObj, before using another function that expects something of a certain type.

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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  

×