VB Script


  1. Introduction To VB Script
  2. Dialog Boxes used in Vb script
    • Message dialog box
    • Input dialog Box
    • Print Dialog Box
  3. VB script comments
  4. VB Script variables
  5. VB script Arrays
  6. VB Script Data Types
  7. VB Script Operators
  8. VB script Constants
  9. VB Script Conditional statements
    • IF
    • IF Then Else
    • IF Then Else IF Then ..........Else
    • Select Case
  10. VB Script Loop controal statements
    • DO.....LOOP
    • While Wend
    • For Next
    • For Each ...Next
  11. VB Script Procedures
    • Sub procedures
    • Function Procedures
  12. 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