home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 7 / POWERCD7.ISO / prgmming / clipper / pnextrow.prg < prev    next >
Text File  |  1993-10-14  |  2KB  |  75 lines

  1. /*
  2.  * File......: PNEXTROW.PRG
  3.  * Author....: Martin Colloby
  4.  * BBS.......: The Dark Knight Returns
  5.  * Net/Node..: 050/069
  6.  * User Name.: Martin Colloby
  7.  * Date......: 18/4/93
  8.  * Revision..: 1.0
  9.  *
  10.  * This is an original work by Martin Colloby and is placed in the public
  11.  * domain.
  12.  *
  13.  * Modification history:
  14.  * ---------------------
  15.  *
  16.  * $Log$
  17.  *
  18.  */
  19.  
  20.  
  21. /*  $DOC$
  22.  *  $FUNCNAME$
  23.  *      GT_NEXTROW()
  24.  *  $CATEGORY$
  25.  *      Printer
  26.  *  $ONELINER$
  27.  *      Output text to the next printer row
  28.  *  $SYNTAX$
  29.  *      GT_NextRow( nDown , cWhat , nLeftMgn )
  30.  *  $ARGUMENTS$
  31.  *      nDown    - Number of rows to move down
  32.  *      cWhat    - Text to be output
  33.  *      nLeftMgn - Left margin of text
  34.  *  $RETURNS$
  35.  *      NIL
  36.  *  $DESCRIPTION$
  37.  *      Moves the printer row down and outputs the given text
  38.  *  $EXAMPLES$
  39.  *
  40.  *  $SEEALSO$
  41.  *
  42.  *  $INCLUDE$
  43.  *      GT_LIB.CH
  44.  *  $END$
  45.  */
  46.  
  47. *
  48. #include "GT_LIB.CH"
  49.  
  50. FUNCTION GT_NextRow( nDown , cWhat , nLeftMgn )
  51.  
  52. /*****************************************************************************
  53.  Purpose - Output text to printer on next row
  54.  Returns - None
  55.  Author  - Martin Colloby
  56.  Created - 04/24/92
  57.  Edited  - 25/4/92 by Martin Colloby - Tidied up
  58. ******************************************************************************
  59.  Parameters - nDown    - Number of rows to move down
  60.               cWhat    - Text to be output
  61.               nLeftMgn - Left margin of text
  62.  Privates   - None
  63.  Locals     - None
  64.  Externals  - None
  65. *****************************************************************************/
  66.  
  67. DEFAULT  cWhat    TO ""
  68. DEFAULT nDown    TO 1
  69. DEFAULT nLeftMgn TO 0
  70.  
  71. @ PROW() + nDown , nLeftMgn SAY cWhat
  72.  
  73. RETURN NIL
  74. *
  75.