Variables are used to hold a value or an expression.Its keeps some value in the memory.Whenever you have a piece of data to work with, you will declare a variable.
For example, if you have to store names of students or roll number of student, you will be using variables like student_name or roll_number
As like every language Vb script also have rules for naming convention for variables.
For example, if you have to store names of students or roll number of student, you will be using variables like student_name or roll_number
As like every language Vb script also have rules for naming convention for variables.
Naming Convention for variables in VB Script :
Variable names follow the standard rules for naming anything in VB Script.Those are
- Always first character of variable should be alpha character.
- we cant use special character as variable names except underscore ( _ ) .
- Keywords are not allowed to use as variable name like dim,break,if..etc.
- Variable name should not exceed 255 characters.
- Must be unique in the scope in which it is declared.
No comments:
Post a Comment