Datasheet

Release Notes - New Features included in Release 2.4.0
Page 64 of 89
Note – this currently doesn’t work on “input” – you can’t “input w.field1[3:2]
l. It is now possible to declare and use arrays.
These must be w. data types, e.g.:
let w.sq=array
let w.sub1=4
let w.sq[w.sub1]=w.sub1 * w.sub1
display w.sq[w.sub1]
display w.sq[4]
The “let w.field=array” clause creates an empty array (with a nominal 10 blank entries).
The array will expand as required up to 9,999,999 entries (if memory allows!) – the statement
let w.sq[1000]=1000
will create as many empty entries as required between the current array size and the size
referenced.
Non-existent intermediate entries appear as blank strings.
If a non-existent trailing entry is referenced but is not being set to a value, it will be seen as a
blank string, but intermediate dummy entries will not be created.
(e.g. display w.sq[100000] won’t create any dummy entries at all).
Array entries may be numeric or string (mixed):
let w.sq[4]=“abcdef”
let w.sq[5]=25
let w.sq[4]=16
Arrays stay in existence (including between tasks) until cleared by a subsequent “array” clause.
It is recommended that this is done when an array is finished with – particularly when a large
array has been created – to free the memory.
Note that relative subscripting is not allowed (you can’t refer to w.sq[w.sub1 + 1] ).
It is also not permitted to mix subscripting and reference-modification in the same dataname
reference (you can’t refer to w.sq[w.sub1][2:1] ).
Note – this currently doesn’t work on “input” – you can’t “input w.sq[2]”
m. The command ‘cleartasks’
may now be entered at the task prompt in order to clear the stored task code. This is for use
during testing, and removes the need to exit and re-enter sfdc to use an amended task file.
n. New error display features
The error display prefix “Error:” will now be replaced by the value on w.$ERROR_PREFIX (if
set up). For example, this enables escape sequences to be displayed before an error message.
Similarly w.$ERROR_SUFFIX (if set up) will now be displayed after the error message. In this
case, a new-line will only be displayed if w.$ERROR_SUFFIX ends with the characters “\n”.
o. ‘exit’ has now been implemented
in addition to ‘end’ and ‘fin’ as a method of exiting when at the task prompt.