Package: Array Tools

Author: HCA Central
Version: 2
Added to Library: 11-Nov-23
HCAVersion needed: 17
Keywords: Utility

Package Description:
Implements arrays using comma seperated lists

Program: Array Get

Program Description:
Implements an array using a comma separated list. This function is supplied with the array data and an element number - zero based - and returns that element.

Parameters:

Name Type Description Default
Array Value The Array  
iElement Value Element index. 0 is the first element, 1 is the second, etc. 0

Program: Array Inc

Program Description:
Implements an array using a comma separated list. This function is supplied with the array data and an element number - zero based - and increments that element. The updated array data is returned.

Parameters:

Name Type Description Default
Array Value The array  
iElement Value Element index. 0 is the first element, 1 is the second, etc. 0

Program: Array Set

Program Description:
Implements an array using a comma separated list. This function is supplied with the array data and an element number - zero based - and the data for an array element to update. The updated array data is returned.

Parameters:

Name Type Description Default
Array Value The Array  
iElement Value Element index. 0 is the first element, 1 is the second, etc. 0
Data Value Value to set the iTh element to 0

Program: Array Zero

Program Description:
Implements an array using a comma separated list. Provided with the count of elements in the array and returns the array data for that many elements all zero.

Parameters:

Name Type Description Default
ItemCount Value Count of elements in the array  

Program: Is Array Zero

Program Description:
Implements an array using a comma separated list. Determines if the array contents has all zero elements.

Parameters:

Name Type Description Default
Array Value The array  
ctElements Value Number of elements in the array