[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Err.number & -2147221005
Never seen it before but it is perfectly reasonable behaviour and works the same in all versions of VBScript. -2147221005 is the ole automation error number for Invalid class string. -2147221005 (800401F3) Invalid class string. So doing this with an invalid class string and on error set to resume next >Set xmlDoc = Server.CreateObject(msxmlString) will set Err.number to -2147221005 which is correct. However doing this > errnumber=CINT(Err.number) will set Err.number to 6 which is a runtime Overflow error. So then doing this > errnumber=CINT(Err.number) will set errnumber to 6. I don't know what you mean about 6 being a correct value. Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml >-----Original Message----- >From: owner-xsl-list@xxxxxxxxxxxxxxxx >[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of lists@xxxxxxxxxx >Sent: 20 August 2000 10:48 >To: XSL-List@xxxxxxxxxxxxxxxx >Subject: Err.number & -2147221005 > > >Anyone found this error? >Running ASP pages on Win2000 Advanced Server: > > Set xmlDoc = Server.CreateObject(msxmlString) > If Err.number > 0 Then > >If I run this with a faulty msxmlString, Err.number is set to >"-2147221005". If I do the following instead: > > Set xmlDoc = Server.CreateObject(msxmlString) > errnumber=CINT(Err.number) > errnumber=CINT(Err.number) > >then ... the first Err.number is -2147221005, the second is 6, the correct >value. >Anyone else found this? > >Thanks, Roland. > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|