[thelist] ASP questions

kev.skindrill kev.skindrill at bigfoot.com
Fri May 12 07:20:00 2000


> Option Explicit needs to be declared as the very first thing in the page.
> It'll chuck an error otherwise.

Right, this is the error I keep getting...

Expected statement 

/Default.asp, line 10

option explicit
^

Line 10 being option explicit. This is run in the <body> section of the
code. Should I declare my variables in the <head>, is that what you mean?

>how do you declare them? (give me an example)

The way I declare my variables is like this (as per my book)...

option explicit
dim x
dim y

What really annoys me is that this happens when I copy a script right from
the book so (theoretically) it should run correctly.
Thanks for your help by the way.

K
kev.skindrill@bigfoot.com
www.skindrill.freeserve.co.uk