Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - setprc() set printer row and column counters http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setprc()            Set printer row and column counters
------------------------------------------------------------------------------
 Declaration
   printer.hdr

 Syntax
   proc setprc extern
   param value uint nRow, ;
         value uint nCol

 Arguments
   nRow is the printer row.
   nCol is the pronter column.

 Return
   None.

 Description
   This procedure is used to redefine the internal counters for the current
   printer row and column.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_setprc
   /*
   Before printing the report, we want to send some control
   characters to the printer. Then we reset the internal
   counters because Force "thinks" that the printer head has
   already moved four columns to the right.
   */
   set printer to "LPT1"
   ? chr(27) + chr(64) + chr(27) + chr(71)
   setprc( 0, 0 )
   ? "Printing report..."
   endproc

   proc main
   Test_setprc()
   endproc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson