Push and Pop Tutorial: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 10: Line 10:
Next: [[Print Preview Tutorial]]<br>
Next: [[Print Preview Tutorial]]<br>
Back: [[Tutorial 2|Table of Contents]]
Back: [[Tutorial 2|Table of Contents]]
</noinclude>
<noinclude>
[[Category:Printing Tutorial]]
</noinclude>
</noinclude>

Latest revision as of 01:41, 16 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