![]() |
You can use the VBScript option Explicit statement in an asp file to require variables to be explicitly declared. The option Explicit statement must appear after any ASP directives and before any HTML text or script commands. This statement only affects ASP commands that are written in VBScript; it has no affect on Jscript commands.
Jscript
Microsoft Jscript requires variable declarations only for variables that are local to a procedure, but it is good scripting practice to declare all variables before using them. To declare a variable, use the Var statement. For example:
< % var UserName; % >
Domain Name Search
IDC and HTX Files
Creating ASP Pages
Adding Script Commands
Mixing HTML and Script Commands
ASP Directives
Setting the Primary Scripting Language
Using VBScript and JScript on a Server
Variable Scope
Session Scope
Application Scope
Defining Procedures
Calling Procedures
Components
ASP Applications| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |