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

Aborting 1 report out of a series

Status
Not open for further replies.

michaelkatz

Programmer
Sep 1, 2002
50
GB
We send up to 30 reports to the printer. some of which are lengthy.

There is a delay between reports as the data is manipulated, and I put in

If lastkey() = CHR(27)

to see if escape was pressed, and abort the report.

It works fine, except when the next report is being processed, the IF LASTKEY() statement is .T. and all subsequent reports are aborted.

Is there a way to change the value of LASTKEY() ?

Thanks
 
The sequence:
Code:
KEYBOARD " "
INKEY()


- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
michaelkatz;

See the Help screen for the KEYBOARD command.

Ed


Please let me know if the suggestion(s) I provide are helpful to you.
Sometimes you're the windshield... Sometimes you're the bug.
smallbug.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top