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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine the number of rows displayed in the datawindow control

Status
Not open for further replies.

jbeetz1

Programmer
Nov 28, 2000
60
0
0
US
As long as I have been using Powerbuilder, I never had to get the number of current rows displayed in a datawindow control, as I always used the vertical scroll bar. However, I cannot use the standard vertical scroll bar and need to know this information to take some other action.

How would I get the total rows displayed?

Thanks
Jerry
 
hello,

don't know if I understood you well, but to obtain the total rows being displayed (which is not necessarily equal to the "total rows having been retrieved" ( = dw_control.rowcount() ):

try:
---
long ll_rows_visible
ll_rows_visible = &
long( dw_control.Object.DataWindow.lastRowOnPage) - &
long( dw_control.Object.DataWindow.FirstRowOnPage) + 1

tell me if I didn't understand you well.

de Mazzel,
Miguel L.


regards,
Miguel L.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top