Data types

<< Click to Display Table of Contents >>

Data types

The following data types are available:

Type

Suffix

Syntax of the declaration

Size

String

$

Dim <Name> As String

0 to 65,500 characters

String*n

 

Dim <Name> As String*n

exactly n characters

Integer

%

Dim <Name> As Integer

2 bytes

Long

&

Dim <Name> As Long

4 bytes

Single

!

Dim <Name> As Single

4 bytes

Double

#

Dim <Name> As Double

8 bytes

Boolean

 

Dim <Name> As Boolean

2 bytes

Variant

 

Dim <Name> As Variant

depends on content

 

 

Or simply: Dim <Name>

 

Object

 

(see the section OLE Automation)

 

User-defined

 

(see the section User-defined data types)

 

Information on using variables can be found in the section Variables.