asp pages ignoring lines of script

S

s_m_b

Can't figure this one.
web page with vbscript asp, w2k/iis5
The page opens with no errors (syntax errors get picked up just fine)
but. If a line contains a variable that's either not dimmed, or has no
value, or returns a bad value from say instr(), the line is simply ignored,
or if its inside a loop or for/next, that block is ignored.

any ideas?
 
T

Terren

chuck <%Option explicit%> at the top of the page to make sure your code
is correct before any actions are taken
 
J

Jeff Cochran

Can't figure this one.
web page with vbscript asp, w2k/iis5
The page opens with no errors (syntax errors get picked up just fine)
but. If a line contains a variable that's either not dimmed, or has no
value, or returns a bad value from say instr(), the line is simply ignored,
or if its inside a loop or for/next, that block is ignored.

any ideas?

Stop writing bad code. :)

Check all inputs. Use Option Explicit. Test heavily. Do not use On
Error Resume Next until the code is fully debugged.

Probably 80% of any decent code is error trapping and handling.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top