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.

Syntax

nColumn, nRow = CGrid:FindCell( strName )

bullet.gif    Where strName is the string to locate.

bullet.gif    On success, nColumn and nRow are returned. On error, the value 0, 0 is returned.

Example

The following creates a CGrid, fills it with data, then finds the cell containing the value "15.5":

G = new_grid()

-- create a new CGrid object

-- fill the grid

 

nCol, nRow = G:FindCell("15.5")

-- return the first column and row containing "15.5".

Related Topics

CGrid class, Get, SH_FindRow, TH_FindCol


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.