PtrDevice:Quit Access
<< Click to Display Table of Contents >> PtrDevice:Quit Access |
![]() ![]() ![]() |
Type | Logic |
Purpose
This access returns TRUE if the PtrDevice object is in the Print() or PrintPreview() mode and the user has selected the CANCEL button on the displayed dialog window. You should regularly check this access while in the PtrDevice callback functions. If this access returns TRUE, you should return immediately so the PtrDevice can terminate the print/preview operation in a timely manor.
Example
// Regularly check if the user pressed
// the Cancel button
method PrintPageBody(oPtrDevice) class MyReport
do while ...
if oPtrDevice:Quit
// stop printing
return PRINT_NOMORE
endif
enddo