The Im object working on is created in JavaScript, but used in VBScript. In one code path, a variable is M.DOM.IPtdefined and has a value, and in another it is not. I need to determine if this has been determined or not. I checked that it M.DOMis defined and available for both code paths. Every test I tried just leads to this error:
Error: object does not support this property or method
I tried:
IsEmpty(M.DOM.IPt)M.DOM.IPt is NothingisNull(M.DOM.IPt)
Is there a way to detect the isnt variable and avoid the error?
Note. I can put it On Error Resume Nextinside and it will simply ignore the error, but I really need to detect it and conditionally do something.
alumb source
share