CGrid:FindCell
The FindCell method returns the column and row numbers for the grid cell containing the specified string. Use SH_FindRow and TH_FindCol to search the grid headings.
nColumn, nRow = CGrid:FindCell( strName )
Where strName is the string to locate.
On success, nColumn and nRow are returned. On error, the value 0, 0 is returned.
The following creates a CGrid, fills it with data, then finds the cell containing the value "15.5":
|
-- create a new CGrid object |
-- fill the grid |
|
|
-- return the first column and row containing "15.5". |
CGrid class, Get, SH_FindRow, TH_FindCol
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.