Dim

Dim VariableName As VariableType

There are 5 types of variables in Cubloc BASIC.

*For storing negative numbers, please use LONG or SINGLE. Use the Dim statement for declaring variables as shown below:

Dim A As Byte                  ' Declare A as Byte.
Dim B As Integer, C As Byte    ' Commas may NOT be used.
Dim ST1 As String * 12         ' Declare a String of 12 bytes.
Dim ST2 As String              ' String is 64 bytes default.
Dim AR(10) As Byte             ' Declare AR as a Byte Array.
Dim AK(10,20) As Integer       ' Declare AK as a 2-Dimensional Array

Go CUBLOC home