However, to be more systematic, VB divide data into different types. 5.1 Types of Visual Basic Data 5.1.1 Numeric Data Numeric data are data that consists of numbers, which can be computed mathematically with standard various operators such as add, minus, multiply, divide and so on. Same as variable-length string 5.1.3 Suffixes for Literals Literals are values that you assign to a data. In some cases, we need to add a suffix behind a literalso that VB can handle the calculation more accurately. Some of the suffixes are displayed in Table 5.3.
Strings can contain any characters, including numbers.
In term of VB, variables are areas allocated by the computer memory to hold data. Like the mail boxes, each variable must be given a name. To name a variable in Visual Basic, you have to follow a set of rules. In Visual Basic, one needs to declare the variables before using them by assigning names and data types. They are normally declared in the genaral section of the codes' windows using the Dim statement.