Using Option Explicit
Written by Eric Smith, Northstar Computer Systems LLC
If you don't regularly declare your variables, you can run into problems with typos in variable names. VBScript automatically creates variables as it sees the names, by default. However, if you put Option Explicit as the very first line in your file, all variables will have to be declared in the page. Just add it to the top of the file like this:
<% Option Explicit %>
Make sure you put it before any other script code or you'll get an error.
Keywords: [
Uncategorized ASP Tips
]
Publication Date: 7/1/1999
|