asp classic - Vbscript Set myVar = Nothing only errors on localhost -


on server running iis6, vbscript/class asp code such works fine:

set myvar = nothing 

i think should error, variable not dim correctly , using <%option explicit%>. doesn't error.

however running same code on local iis5.1 (with visual studio installed), throws error (which should).

i'm not worried error (i think should erroring), there reason why error on ii5.1. rather iis6?

this still occurs when turn off server-side/client-side debugging on localhost.

ok, since don't have answer yet, i'll post thinkings, maybe it'll lead solution.

in framework (qtp), every module- or libraryfile attached main script needs have option explicit switch. when forget in 1 of scripts, option explicit switch ignored in parts of script.

second, have checked if myvar not public variable somewhere in framework? can test checking vartype , value/objecttype of variable and/or replacing myvar variable name sure of doesn't exist.

and maybe tinkered on error resume next, said, not familiar ii6.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -