nDeleted = MTblDeleteDescRows( hWndTbl, nParentRow, nMethod )

Deletes all descendant rows of a parent row.

Parameters
hWndTbl
Window Handle: Handle of the table

nParentRow
Number: Parent row whose descendant rows you want to delete

nMethod
Number: Delete method ( TBL_Adjust or TBL_NoAdjust )

Return
Number: Number of deleted rows if successful or -1 if an error occurs

Example
In this example the desendant rows of all top level rows are deleted with TBL_NoAdjust:

Set nRow = -1
While SalTblFindNextRow( hWndTbl, nRow, ROW_Selected, 0 )
  If MTblGetRowLevel( hWndTbl, nRow ) = 0
    Call MTblDeleteDescRows( hWndTbl, nRow, TBL_NoAdjust )

See also
Tree view

Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation