Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Nov 20, 1998

Printing a line at the detail band

Question:
I want to print a line at the detail band only if it's on the last row of the page; otherwise, it should not print at all.

Answer:
To achieve this, you will need to return the rownumber of the result set in the result set. Or alternatively, after the datawindow is retrieved, populate an empty column with the row number.

Then you can make use of the function last in the datawindow. For the line visible property, you can check the value in the rownumber column against the value returned from last( rownumber for page ). For example:

if( rownumber = last( rownumber for page ), 1, 0 )

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date