Como: Armazenar inteiros em uma variável (Visual Basic)
Integers are whole numbers, including positive, zero, and negative. A variable holds integers if you declare it to be of type Integer. The Tipo de Dados Inteiro (Visual Basic) can hold integers from -2,147,483,648 through 2,147,483,647.
You can also use the Tipo de dados Long (Visual Basic), the Tipo de dados Short (Visual Basic), or the Tipo de dado SByte (Visual Basic) to hold integers. For more information, see Tipos de dados numéricos (Visual Basic).
To hold integers in a variable
Declare the variable with a Instrução Dim (Visual Basic).
Follow the variable name with an As clause.
Follow the As keyword with the Integer keyword.
Dim students As Integer
Consulte também
Referência
Resumo de tipo de dados (Visual Basic)
Conceitos
Tipos de dados no Visual Basic
Caracteres de tipo (Visual Basic)