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

  1. /*
  2.  * File......: PSAMEROW.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_SAMEROW()
  24.  *  $CATEGORY$
  25.  *      Printer
  26.  *  $ONELINER$
  27.  *      Output text to the current printer row
  28.  *  $SYNTAX$
  29.  *      GT_SameRow( nColPos , cWhat , nLeftMgn )
  30.  *  $ARGUMENTS$
  31.  *      nColPos  - Colum to output text at
  32.  *      cWhat    - Text to be output
  33.  *      nLeftMgn - Left margin of text
  34.  *  $RETURNS$
  35.  *      NIL
  36.  *  $DESCRIPTION$
  37.  *      Outputs text to the current printer row
  38.  *  $EXAMPLES$
  39.  *
  40.  *  $SEEALSO$
  41.  *
  42.  *  $INCLUDE$
  43.  *      GT_LIB.CH
  44.  *  $END$
  45.  */
  46. *
  47. #include "GT_LIB.CH"
  48.  
  49. FUNCTION GT_SameRow( nColPos , cWhat , nLeftMgn )
  50.  
  51. /*****************************************************************************
  52.  Purpose - Output text to printer on current row
  53.  Returns - None
  54.  Author  - Martin Colloby
  55.  Created - March 1992
  56.  Edited  - 25/4/92 by Martin Colloby - Tidied up
  57. ******************************************************************************
  58.  Parameters - nColPos  - Colum to output text at
  59.               cWhat    - Text to be output
  60.               nLeftMgn - Left margin of text
  61.  Privates   - None
  62.  Locals     - None
  63.  Externals  - None
  64. *****************************************************************************/
  65.  
  66. DEFAULT nColPos TO 0
  67. DEFAULT cWhat   TO ""
  68.  
  69. @ PROW(), PCOL() + ( nLeftMgn + nColPos - PCOL() ) SAY cWhat
  70.  
  71. RETURN NIL
  72. *
  73.