·  VB .NET - Syntax - Variables - Integer

 

- Info:

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

  - Integer 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 Integer

            value = -32768

            value =  32767

    

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

        MsgBox(value)

     

      End Sub

    

    End Module