ListCellPositionsBool

Declaration: ListCellPositionsBool (Arr: TBool2DArray; value: boolean; MaxCellCnt: integer; var CellPos: TInt2dArray): integer;
The function ListCellPositionsBool searches for cells having the value specified by the parameter value and returns their matrix indices in the variable parameter CellPos. The parameter MaxCellCnt allows to restrict the number of returned indices. Set MaxCellCnt to zero in order to search the entire array.

The function returns the following error codes:

≥0 ... everything is OK, the returned number is the number of found cells
-1 ... the array Arr has zero length