Please enable JavaScript to view this site.

A-Shell 6.5 Development Notes

New language feature: WRITECD or WRITETD of an entire array. Syntax:

WRITECD #ch, ary()

WRITETD #ch, ary()

This is equivalent to:

WRITExD #ch, ary(1), ary(2), ...

... up to the extent of the array.

Comments

Requires compiler edit 941+ and A-Shell version 6.5.1697+.
The ary() must be of type X. The element size can be fixed or dynamic, and the array itself can be fixed (i.e. MAPped) or created with DIMX. DIMX with AUTO_EXTEND is recommended for maximum flexibility.
See corresponding INPUT CSV #ch, ary() feature added in 6.5.1629.0 and recently updated.

History

2023 September, A-Shell 6.5.1742:  The WRITECD ARY() statement (to write out all the elements of the array in delimited format) now supports numeric array types as well as GRIDMAPs. Previously only string arrays were supported. Note that in the GRIDMAP case, the output starts at row 1; anything prior to that is considered internal control information and omitted from the output. For example:

dimx $csvmap, gridmap(int;varstr;varstr)

 

open #1, csvin$, input

input csv #1, $csvmap()   ! input entire file into gridmap

close #1

 

open #2, csvout$, input

input csv #2, $csvmap()   ! output entire gridmap to file

close #2