- Introduction To VB Script
- Dialog Boxes used in Vb script
- Message dialog box
- Input dialog Box
- Print Dialog Box
- VB script comments
- VB Script variables
- VB script Arrays
- VB Script Data Types
- VB Script Operators
- VB script Constants
- VB Script Conditional statements
- IF
- IF Then Else
- IF Then Else IF Then ..........Else
- Select Case
- VB Script Loop controal statements
- DO.....LOOP
- While Wend
- For Next
- For Each ...Next
- VB Script Procedures
- Sub procedures
- Function Procedures
- VB Script Builtin Functions
- Array functions
- String Related
- Date related
- Time Related
- Other Functions
VB Script
VB Script variables
A variable is a container which can store some amount of data.Here a variable refers to a memory location where that data resides that data may be accessed and changed during the execution of our script.
1.Declaring a variables:
we usually declare a variables explicitly with DIM keyword
syntax:
DIM Variablename
we can declare multiple variables by separating ","(coma) as shown below
DIM variable1,variable2,variable3........
we can declare variables implicitly by without using DIM it is not a good programming practice,so we always ensure that we are declaring a variables explicitly for that we use "Option Explicit" keyword,this will force explicit declaration of variables in the script.
No comments:
Post a Comment
Admin will respond you with in next 24 hours