Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - A lot of undefined variables errors
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

A lot of undefined variables errors

 Post Reply Post Reply
Author
Guerriero4 View Drop Down
Newbie
Newbie
Avatar

Joined: 31 December 2003
Location: Greece
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guerriero4 Quote  Post ReplyReply Direct Link To This Post Topic: A lot of undefined variables errors
    Posted: 11 January 2004 at 6:21am

I dont know why but i get a lot of 'undefined variable errors'

I fix them but from time to time i get more, it seems kind of random

Do anyone else has that or is it only me????

 

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2004 at 12:14pm

"Option Explicit"

If you specify that at the head of each asp page, it forces that error for any variable that isn't declared by a "Dim" statement before it's used.

It's a useful programming practice because it will catch any mis-spelled variables. Nothing worse than trying to figure out why something's not working only to find that you misspelled something. It's not required though, and many developers don't use it.

Some editors however, either have an option to insert it if it's not there, or insert it by default. So if you open up a file for editing then save it, you'll get that error for each variable with no Dim statement when it tries to run.


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Guerriero4 View Drop Down
Newbie
Newbie
Avatar

Joined: 31 December 2003
Location: Greece
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guerriero4 Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2004 at 2:22pm

oh i see, i forgot the thing about the editors.

thx m8

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.