bOk = MTblGetMergeCell( hWndCol, nRow, hWndrMergeCol, nrMergeRow )

Retrieves the cell with which the specified cell is merged.

Parameters
hWndCol
Window Handle: Handle of the column

nRow
Number: Row number

hWndrMergeCol
Receive Window Handle: Contains the column handle of the cell with which the specified cell is merged if the function returns successfully

nrMergeRow
Receive Number: Contains the row of the cell with which the specified cell is merged if the function returns successfully

Return
Boolean: TRUE if successful or FALSE if the cell isn't a merged cell or an error occurs

Example
In this example we check whether a cell is merged:

If MTblGetMergeCell( hWndCol, nRow, hWndMergeCol, nMergeRow )
  Call SalMessageBox( "The cell is merged.", "Merge info", 0 )

See also
Cell merging
Row merging

Created with the Personal Edition of HelpNDoc: Produce Kindle eBooks easily