How to delete only the "splited" (lower) part table window

forum.advanced.programming (1998-2005)
klaushaidinger
Austria
Posts: 95
Joined: 13 Dec 2017, 06:08
Location: Austria

How to delete only the "splited" (lower) part table window

Post by klaushaidinger » 04 Feb 2005, 09:51

 Posted by:  Klaus Haidinger 

Good morning everybody,

i have a problem using a tablewindow, splited by SalTblDefineSplitRow
(hWndForm, 3, FALSE).
I want to delete only the 3 lower - rows (sum-rows), the others have to
stay in table.
any suggestions?

thank you
klaus

Philip Hautekiet

How to delete only the "splited" (lower) part table window

Post by Philip Hautekiet » 04 Feb 2005, 11:08

 Posted by:  Philip Hautekiet 

If've tried this, and it seems to work.

!!CB!! 173
On SAM_CreateComplete
Call SalTblInsertRow(hWndForm,TBL_MaxRow)
Call SalTblInsertRow(hWndForm,TBL_MaxRow)
Call SalTblInsertRow(hWndForm,TBL_MaxRow)
Call SalTblDefineSplitWindow(hWndForm,3,TRUE)
Call SalTblInsertRow(hWndForm,TBL_MinSplitRow)
Call SalTblInsertRow(hWndForm,TBL_MinSplitRow)
Call SalTblInsertRow(hWndForm,TBL_MinSplitRow)
Call SalPause(4000)
Set nRow = TBL_MinSplitRow
Call SalTblDeleteRow(hWndForm,nRow,TRUE)
While SalTblFindNextRow(hWndForm,nRow,ROW_New,0)
Call SalTblDeleteRow(hWndForm,nRow,TRUE)

Philip Hautekiet

How to delete only the "splited" (lower) part table window

Post by Philip Hautekiet » 04 Feb 2005, 11:22

 Posted by:  Philip Hautekiet 

Sorry, It also deleted the other rows.
I tried this, but each element in my array nRowSplit has the same value.

!!CB!! 174
Set nRowSplit[1] = SalTblInsertRow(hWndForm,TBL_MinSplitRow)
Set nRowSplit[2] = SalTblInsertRow(hWndForm,TBL_MinSplitRow)
Set nRowSplit[3] = SalTblInsertRow(hWndForm,TBL_MinSplitRow)

Call SalTblDeleteRow(hWndForm,nRowSplit[1],TRUE)
Call SalTblDeleteRow(hWndForm,nRowSplit[2],TRUE)
Call SalTblDeleteRow(hWndForm,nRowSplit[3],TRUE)

"Philip Hautekiet" schreef in
bericht news:ja63WDqCFHA.2828@guptaweb...

Mirko
Italy
Posts: 1434
Joined: 04 Apr 2017, 08:56
Location: Geneva

How to delete only the "splited" (lower) part table window

Post by Mirko » 04 Feb 2005, 11:39

 Posted by:  Mirko BONANNO 

Hi Klaus,
Maybe you can flag your sum-rows (using ROW_UnusedFlag1 or 2) when you
create them and then find them again using SalTblFindNextRow(........,
ROW_UnusedFlag1, 0).

HTH
Mirko

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 1 guest