Returns the current index of a SCAN or ARRAY. That
is the number of valid points. Total() returns the upper limit.
Normally the current index is equal to total().
There are operations, like CUT and KEEP for example, which
create SCANs with smaller current indices.
This function
can also be used to set the current index.
e.g.:
SPECTRA>* = curr_index(bpu1)
222
SPECTRA> curr_index(bpu1) = 100
SPECTRA> display
Mind that the current index is implicitly set, if
a single x- or y-value of a SCAN/ARRAY is changed, e.g.: bpu1(123) = 12.
This command sets the 123 y-value of BPU1 to 12 and changes
the current index to 123.