sub Globals
dim Grx, grid1, grid2, grid3, ......grid15 as xnGrid
end sub
'
Sub FindIngrid(what As String, grad As Object, col As Int) As Int
Grx=grad
Dim rt=-1 As Int
For rw=0 To Grx.RowCount-1
If Grx.GetValue(rw, col)=what Then
rt=rw
Exit
End If
Next
Return rt ' return the found row
End Sub