ERROR 13 - Type mismatch (211 Views)
Occasional Contributor
Posts: 13
Registered: ‎05-26-2013
Message 1 of 2 (211 Views)

ERROR 13 - Type mismatch



I have the following code :

set result = object.childObjects(dscr)

set obj = result(0)


In some cases I got on the second Error 13 and on the same object and description I don't get error.

If I ignore the error I have the child object in obj and I can make action like:



What can cause this error ?



Frequent Advisor
Posts: 29
Registered: ‎09-02-2008
Message 2 of 2 (147 Views)

Re: ERROR 13 - Type mismatch

start by checking that result.Count > 0, before attempting to use result(0)



The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.