tommytx Posted March 20, 2012 Share Posted March 20, 2012 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.. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted March 20, 2012 Share Posted March 20, 2012 (edited) You probably want to use a function like this, IsObj, before using another function that expects something of a certain type. Edited March 20, 2012 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now