VARIABLE DECLARATION



Declaring the variable and its data type.



Syntax:

          Dim   variablename as             datatype

Example:

          Dim   a       as       Integer

          Dim   a ,b    as       Integer

          Dim   cusname          as         String



                                                     INPUT BOX

Getting the input through input box at run time.

Syntax:

    1. Declare the variable for getting Input
    2. Variable        =        InputBox(“ Comment”)


Example

Dim a as Integer

A= Inputbox(“Enter the Integer value “)

Variable declaration

  • 1.
    VARIABLE DECLARATION Declaring thevariable and its data type. Syntax: Dim variablename as datatype Example: Dim a as Integer Dim a ,b as Integer Dim cusname as String INPUT BOX Getting the input through input box at run time. Syntax: 1. Declare the variable for getting Input 2. Variable = InputBox(“ Comment”) Example Dim a as Integer A= Inputbox(“Enter the Integer value “)