VBScript Statements
q A Statement is a basic execution unit of VBScript source code. A statement tells the computer to perform a piece of work. For example, a declaration statement declares a variable. An assignment statement assigns a value to a variable.
q Here are some general rules about VBScript statements:



statement_part_1
_ statement_part_2


q Like any other generic programming language, VBScript offers a number of statement types. I will only list some commonly used statement types below:
q "=" (Assignment) Statement - Assigning values to variables. For example:
q author = "Herong"
q price = 9.99
q "Call" Statement - Calling a function or a subroutine. For example:
q Call document.writeln("Hello world!")
q "Dim" (Declaration) Statement - Declaring variables. For example:
q Dim Author, Title, Size
q Dim Price
No comments:
Post a Comment