Shifts table items in a table by a number of positions. You can shift the table left or right. Items shifted off the end of the table are lost. Items within a table that are not replaced by other items (that have moved) are set to 0.
Note: This function only supports arrays declared in Cicode and not variable tag arrays.
TableShift(Table, Size, Count)
The table to shift, an array of real numbers.
The maximum number of items in the table.
The number of positions to shift the table items. A negative Count moves items to the right and a positive Count moves items to the left.
0 (zero) if successful, otherwise an error is returned.
/* Shifts the table items by 2 positions to the left, that is
Table (Array) Functions