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!

cancelling a report with set reportbehavior 90

Status
Not open for further replies.

vfpgolfer

Programmer
Oct 16, 2004
76
US
I am using VFP9 and have set reportbehavior 90. I then scan a file and want to cancel the report (option) I put following code in:
LOCAL llDone
ON KEY LABEL del llDone = .T.
SCAN
IF llDone
ON KEY LABEL del
EXIT
ENDIF
** then code to print report
This doesn't work in with 90 but if set reportbehavior 80 it works.
 
What does not work? Bailiing out of the loop? Is it possible there are too few records in the cursor you are SCANing?

Have you checked the ON('KEY', 'DEL') in the loop after the REPORT FORM command to make sure the ReportListener being used does not remap the ON KEY LABEL?


_RAS
Shedding Some Light (blog)
VFP MVP
 
I think report listener does remap key - I changed to using inkey and now have solution. Thanks for help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top