User Tools

Site Tools

한국어

cubloc:array_and_constants:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cubloc:array_and_constants:index [2023/07/06 05:26]
COMFILE Technology [Arrays]
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  ' Declare String array 
 </​code>​ </​code>​
  
Line 17: Line 15:
  
 <code xbasic> <code xbasic>
-Dim ST1(10) As String * 12   '​ 13 * 10 = 130 Bytes of Data Memory 
- 
 Dim D(20,10) As Single ​      '​ 4 * 10 * 20 = 800 Bytes of Data Memory Dim D(20,10) As Single ​      '​ 4 * 10 * 20 = 800 Bytes of Data Memory
 </​code>​ </​code>​
cubloc/array_and_constants/index.1688588806.txt.gz · Last modified: 2023/07/06 05:26 by COMFILE Technology