Multiple variables may be declared on a single line in E-Basic using a single Dim statement. However, the user should take care to specify the data type for each variable declared. Any variable that is not specifically declared with a data type will be declared as a Variant. For example:
Dim intCount, intSelect As Integer, strName As String
In this code, strName is declared as a string, and intSelect is declared as an integer. The intCount variable is declared as a Variant because it is not specifically stated to be any other data type. Declaring multiple variables on the same line saves space, but may also increase the likelihood of human error. A compromise may be to not mix data types within a single line:
Dim intCount As Integer, intSelect As Integer
Dim strName As String
This can cause Error 443.