GRID.GetDataFrameRow |
row = GRID.GetDataFrameRow( BYVAL nControl AS INTEGER, BYVAL nFrameNo AS INTEGER ) AS INTEGER
Returns the row number for the specified data frame. This will use the current data range and first frame number to return the row for the specified frame number. Note; the returned row number will be based on OPTION BASE but the frame number is dependent on the setting of FirstFrame and doesn't use OPTION BASE.
Example:
' First frame number of the loaded data nFrame = 2 GRID.FirstDataFrame( nControl, nFrame )
' Get the row number for each of the frames FOR i = 1 TO GRID.GetRange( nControl, MB_RANGE_DATA, MG_GET_ROWCOUNT ) nRow = GRID.GetDataFrameRow( nControl, nFrame ) nFrame = nFrame + 1 ENDFOR
|