Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the number of rows in a (Child-)Table-Window

Centura Software / Gupta

How to get the number of rows in a (Child-)Table-Window

by  ManuelPallas  Posted    (Edited  )
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
!
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top