Push and Pop Tutorial: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(Created page with "Here's where we can get around the top to bottom, left to right path of the printer pointer. [PUSH] will save the printer's position, then lines can be printed, and [POP] will...")
 
No edit summary
Line 5: Line 5:
  descform: form pos 18,c 5,skip 1
  descform: form pos 18,c 5,skip 1
  print #255:"[pop]";
  print #255:"[pop]";
<noinclude>
Next: [[Print Preview Tutorial]]<br>
Back: [[Tutorial 2|Table of Contents]]
</noinclude>

Revision as of 15:45, 11 July 2013

Here's where we can get around the top to bottom, left to right path of the printer pointer. [PUSH] will save the printer's position, then lines can be printed, and [POP] will return the cursor to the place where it saved for itself, and continue printing again. For example, if on an invoice, you enter [PUSH], then print the items in one column, use [POP] to return again to the saved position and then move right to print the date in the same column. It all depends on how your information is organized and what needs modifying in printer commands that have already been written by other programmers.

print #255, using "form C,SKIP 0" :"[push]"
print #255, using descform: "SAL.","O.T.","ADD'L","HOL.","Vac.","Sick"
descform: form pos 18,c 5,skip 1
print #255:"[pop]";


Next: Print Preview Tutorial
Back: Table of Contents