Variable ASP conventions
Again, use the default for ASP scripts, so also use the VBScripts variable naming convention. These rules are:
variable names must be a letter (A to Z or A to Z)
variable cannot contain a period
variable length cannot be longer than 255 characters (don't think it would be a problem!) The
variable must be a unique scope which declares (basically does not declare the same variable name in a script that you will determine).
ASP technology-Assigning value of a SP variable
the values assigned to the ASP are simple and clear enough to use only the equivalent of the "=" operator. Below we have set up a variable equivalent to a number and a separate variable equivalent to a string.
<%
' single Variable Declarations
Dim myString, MyNum, mygarbage
mynum = 25< br> myString = "Hello"
Mygarbage =
Mygarbage = "I changed my variable"
Response.Write ("MyNum =" &am P MyNum & "<br/>")
Response.Write ("myString =" & myString & "<br/>")
Response.Write ("Myga Rbage = "& Mygarbage & <br/>")
%>
Lost results.
MyNum = myString = Hello
Mygarbage = I changed my variable