Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Factory property destroys error handling?

Status
Not open for further replies.

sergya

Programmer
Sep 24, 2002
1
UA
I'm trying to develop new Web part and that was I've found. Following code works well:

===
Function getContent(xmlndPart)
...
on error resume next
err.Raise 6
if err.number <> 0 then
...
===

and following one fails with &quot;Script Execution Error: Overflow&quot;:

===
Function getContent(xmlndPart)
...
dim strUser
strUser = Factory.Properties.Item(&quot;LOGON_USER&quot;)
on error resume next
err.Raise 6
if err.number <> 0 then
...
===

It looks like after having get Factory object property, I'm unable to handle errors using ON ERROR statement.
What's wrong?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top