lang • dim

DIM

This keyword is used for declaring local variables.

All DIM declarations must be in the FUNCTION or SUB before the first executable command.

Examples

Dim fTimeDiff2 As Float
Dim iTest As Integer
Dim iK[9] As Integer ' ik[0] to ik[8]
Dim shX[3, 3] As Short
Dim date1 As Date

iTest = 8

See also