Ask (solicit print specifications)

Top  Previous  Next

 

Ask, VIRTUAL

The Ask method displays a Print Options dialog that prompts the end user for print specifications, then prints the selected lines subject to those specifications (printer destination, paper orientation, etc.).

Implementation:

The Ask method prompts the end user for print specifications (including the Windows standard Print Setup dialog), print preview, plus a range of lines to print. If the user CLICKS the Print button, the Ask method prints the requested lines to the printer specified by the end user.

Example:

ACCEPT

 CASE FIELD()

 OF ?PrintButton                  !on "Print" button

  IF EVENT() = EVENT:Accepted     !call the Printer.Ask method

   IF ViewerActive THEN Viewer.Printer.Ask.   !to gather specs and print lines

  END

 END

END