·  VB .NET - 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 .NET Console Application Test.vb

 

    Test.vb

    Module Module1

    

      Sub Main()

    

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

        Dim value As Long

            value = -2147483648

            value =  2147483647     

    

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

        MsgBox(value)

     

      End Sub

    

    End Module