Rack: GetProductsFromCell
Called to get an array of Product objects in the Cell at grid reference indexX
, indexY
of the Rack, the Return array will be null
if no Product is found.
🔁 Function
Array GetProductsFromCell(indexX: integer, indexY: integer)
⚙️ Parameters
Name | Type | Description |
---|---|---|
indexX |
Integer | The zero based column number for the cell |
indexY |
Integer | The zero based row number for the cell |
↩️ Return Value
Returns an array a Product in a cell, or empty array if none.
📝 Example
To get a count of the number of Products in a cell, use the GetProductsFromCell
function and return Array.length. e.g. The find the number of Products in cell 1,1;
aProd = oRack.GetProductsFromCell(1, 1)
if (aProd != null && aProd.length > 0)
{
//...
}