Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== QTIPS - Using INIT.VIEW with Printers===== ^Published By^Date^Version^Knowledge Level^Keywords^ |Sprezzatura Ltd|01 OCT 1990|1.16+|EXPERT|INIT.VIEW, @VIEW.MODE, PRINTER| 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. <code> * Finish screen output @VIEW.MODE = "" PRINTER ON * etc </code> 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) tips/revmedia/v2i5a2.txt Last modified: 2024/06/19 20:20by 127.0.0.1