Navigation:  Reference > Functions >

ReportLineCount()

Print this Topic Previous pageReturn to chapter overviewNext page

 

REPORT_LINES()

 

PURPOSE

This function will return the number of times the OUTPUT_REPORT_DATA RB_NUM 1 command has been executed since the last SETUP_REPORT_BUFF RB_NUM 1.

 

NO OTHER PARTS

 

RETURN TYPE - R        

 

COMMENTS

This only returns the value of the number of data lines in RB_NUM 1.  This will probably have nothing to do with the actual number of lines printed in the report.  However, it's a quick and easy way to make sure there are lines waiting to be printed before you call the PRINT_REPORT command.

 

EXAMPLE

define cntr type R

cntr = REPORT_LINES()

if cntr > 0

  print_report

else

  msg 'Nothing to Print'

endif

 

EXAMPLE2

if REPORT_LINES() > 0

  Print_Report

else

  msg 'Nothing to Print'

endif

 
 

 

 

 

 


Page url: http://www.cassoftware.com/tas/manual/reportlinecount().htm