·  VB - Syntax - Variables - Long

 

- Info:

  - This tutorial shows how to create Long and convert it to other Data Types.

  - Long data type is an 16-bit variable which can store value from -32768 to 32767.

 

- Procedure:

  - Create VB Application Test.vb

 

    Test.vb

    Sub Main()

    

      'CREATE.------------------------------------------------------------

      Dim value As Long

          value = -2147483648

          value =  2147483647      

    

      'DISPLAY.-----------------------------------------------------------

      MsgBox(value)

    

    End Sub