DATA statement

BCX allows "quoted" or unquoted string data in DATA statements.

Here is a complete example:


 FOR INTEGER I = 0 TO 4
  PRINT DATA$[I]
 NEXT

 DATA one,two,three,"1,2,3,4",five

Result:


 one
 two
 three
 1,2,3,4
 five

As you see in this code snippet, DATA is accessed using the DATA$ [index]. The index variable is zero based and can be anything. DATA statements can appear anywhere in the source code.

BCX Console Sample Programs using DATA statement.

S86.bas