Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
data [2026/10/08 20:05] – [DATA] neilsdata [2026/10/08 20:07] (current) – [Syntax] neils
Line 10: Line 10:
 DATA [AS <type>] <value> [, <value> ...] DATA [AS <type>] <value> [, <value> ...]
 </code> </code>
 +
 +If ''AS <type>'' is omitted, the default ''BYTE'' type will be used.
  
 The ''DATA'' statement in XC=BASIC is different from the one in CBM BASIC. In XC=BASIC, there's no ''READ'' command to copy data into variables but ''DATA'' is typically used together with ''DIM'' to statically initialize a variable with values, like in the following example: The ''DATA'' statement in XC=BASIC is different from the one in CBM BASIC. In XC=BASIC, there's no ''READ'' command to copy data into variables but ''DATA'' is typically used together with ''DIM'' to statically initialize a variable with values, like in the following example: