DIM

This keyword is used for declaring local variables.

All DIM declarations must be in the FUNCTION or SUB before the first use of that variable.

Variables and arrays no longer need to be defined before the first executable command.

Examples

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

iTest = 8

See also