In order for this site to work correctly, and for us to improve the site, we need to store a small file (called a cookie) on your computer.
By continuing to use this website, you agree to our cookies and privacy policy.
  
Home page Home page Home page Home page
Pixel
Pixel Header R1 C1 Pixel
Pixel Header R2 C1 Pixel
Pixel Header R3 C1 Pixel
Pixel

QTIPS - Using INIT.VIEW with Printers

Al Blake at the World Conservation Monitoring Centre in Cambridge recently asked - "how do I work INIT.VIEW with the printer?". This is a problem infrequently seen so for the benefit of those who have not encountered it..... If you make a call to INIT.VIEW and set @VIEW.MODE to 1, screen output will be paged a la LIST command (REVMEDIA passim). If in the same program you subsequently turn the printer on and print to it, corruption occurs: the screen flashes the heading and a box is sent to the printer.

After initial experimentation involving setting @VIEW.MODE to 0, it was eventually found that setting @VIEW.MODE to null ("") or TRANSFERing @VIEW.MODE to a dummy variable (which accomplishes the same result) fixes the problem.


0001     * Finish screen output
0002     @VIEW.MODE = ""
0003     PRINTER ON
0004     * etc

This is interesting as it implies that the person responsible for testing @VIEW.MODE at RevTech is not using a boolean (IF @VIEW.MODE THEN) check, but is using a length comparison (IF LEN(@VIEW.MODE) THEN).

(Volume 2, Issue 5, Page 7)
Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel