Using "Dim" to declare a variable
It is not necessary to declare a variable before using it but we should declare all the variables before assigning the values so that we can reduce the time of debugging our script. We can declare a variable by using dim keyword.
<%
Dim myvar
Dim x
myvar = "Welcome to Ecoweb4u Web Solutions "
x = 100
%>
Dim myvar
Dim x
myvar = "Welcome to Ecoweb4u Web Solutions "
x = 100
%>
Dim is the short form of "Dimension". It is the VBScript syntex and there will be no problem to execute a page where we used variables without declaring unless we put the "Option Explicit" statement to check the variables are properly declared.
This is a one-stop website that meets all your online business needs.This website offer domain registration, web hosting, email hosting, secure ssl certificate, internet software products and development services.
©2004-2009 EcoWeb4u Web Solutions | Queensland, Australia. All trademarks are the property of their respective owners.
A.B.N: 96 996 282 647
A.B.N: 96 996 282 647


