There exists no SAL*-Function to get the current number of rows in a table window.
Try it like in my private-function to get the numbers:
Function: __GetNumberOfRowsInTW
Description: Returns the number of Rows in Table-Window
Returns
Number:
Parameters
Window Handle: hWndTblWindowToCount
Static Variables
Local variables
Number: nMaxRow
Actions
!
! Initialize
Set nMaxRow = TBL_MaxRow
!
! Select the last previouse row before the last one
If SalTblFindPrevRow( hWndTblWindowToCount, nMaxRow, 0, 0 )
!
! Add one to the received row-number and you have the max number of rows in table window ;-)
Set nMaxRow = nMaxRow +1
!
Else
!
Set nMaxRow = 0
!
!
Return nMaxRow
!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.