Features
      Ask DevGuru
      ASP Resources
      Find the Bug
      Knowledge Base
      Links
      Tips of the Week
      Tutorials
  Products
      dgCalendar
      dgCharge New!
      dgChart New!
      dgFileUpload
      dgReport New!
      dgSort
      dgTree
  Site
      Authoring
      Coming Soon
      DevGuru Resume
      Link to Us
      Merchandise
      Sponsorships
      Testimonials
      What's New
  Technologies
      ADO 2.6
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      Transact-SQL Syntax
      VBScript
      WML
      WMLScript
      WSH
      XML DOM

              











STATEMENT:  Option Explicit

Implemented in version 1.0
 
Option Explicit
 
The Option Explicit statement forces the explicit declaration of all variables using the Dim, Private, Public, or ReDim statements.
 
In a long program, this statement prevents the accidental reuse of the name of a previously declared variable. Also, if you mistype a declared variable's name or try to use an undeclared variable, an error message is generated.
 
Note that the Option Explicit statement must be placed at the top of the code before any other VBScript commands or any HTML code.
 
Code:
<% Option Explicit %>
< HTML >
< HEAD >
< TITLE > EXAMPLE < /TITLE >
< /HEAD >
< BODY >
<% Dim myvariable = 123.456  yourvar = 0 %>
< /BODY >
< /HTML >


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information