·  VB - Syntax - Variables - Byte

 

- Info:

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

  - Byte data type is an 8-bit variable which can store value from 0 to 255.

 

- Procedure:

  - Create VB Application Test.vb

 

    Test.vb

    Sub Main()

    

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

      Dim value As Byte

          value = 0

          value = 255

    

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

      MsgBox (value)

    

    End Sub