The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: none
Declaration: [1] function CountTrueCellsOfArray (Arr: TBoolArray): integer;
[2] function CountTrueCellsOfArray (Arr: TBool2DArray): integer;

The funcion CountTrueCellsOfArray counts the number TRUE cells in the boolean array Arr.

The function returns the following error codes:

>0 ... everything is OK, the returned number of the number of TRUE cells
-1 ... Arr has zero size

Last Update: 2017-Nov-24