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

Report to Screen - Not using Report Writer

Status
Not open for further replies.

ArevProgrammer

Programmer
Apr 7, 2001
38
US
I can succesfully do all I need to generate the required
fields for a report, but have not figured out what to do
when it is sent to the screen. To be more precise, whatever
is generated, I use ? to show the contents of my query.

The problem is, a report I generate may be longer than 25
lines on the screen. So I need a way to prompt the user to
press any key to continue to see the rest of the report
without closing the user defined window I send the report
to.



TIA


ArevProgrammer
 
Instead of sending to the screen... send it to a file on a text mode. Then do a editing of this file by MODI COMM myTextFile NOEDIT. Ths way .. you can scroll up and down the report generated.

Example:
m_txt = SYS(3)+".txt"
REPORT FORM &myRpt NOEJECT TO FILE (m_txt)
MODI COMM (m_txt) NOEDIT WINODW myViewWindow

ramani :)
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
If you are not using a report generator,

then have a count variable, and make a wait.
Example:

Local ln && linecount variable
ln = 0
WHILE REPOTING
Add ln=ln+1 for every line output.
IF ln > 25
ln=0
WAIT
ENDIF
ENDDO

HOpe this helps you ramani :)
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top