This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cubloc:array_and_constants:index [2023/07/06 05:27] COMFILE Technology |
cubloc:array_and_constants:index [2023/07/06 05:29] (current) COMFILE Technology [Arrays] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Arrays ====== | ====== Arrays ====== | ||
- | Cubloc BASIC supports arrays of up to 2 dimensions. Each dimension can | + | Cubloc BASIC supports arrays of up to 2 dimensions. Each dimension can contain up to 999 items. String Array not supported. |
- | contain up to 999 items. | + | |
<code xbasic> | <code xbasic> | ||
Line 9: | Line 8: | ||
Dim C(200) As Long ' Declare an array of 200 Longs | Dim C(200) As Long ' Declare an array of 200 Longs | ||
Dim D(20,10) As Single ' 2-dimensional Single array (20 x 10) | Dim D(20,10) As Single ' 2-dimensional Single array (20 x 10) | ||
- | Dim ST1(10) As String * 12 ' Caution : String array doen't support | ||
</code> | </code> | ||