SP_SL_HLINE

SL_HLINE()

  Short:
  ------
  SL_HLINE() Draws a horizontal line from row,col to row,endcol

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_HLINE(nTop,nLeft,nBottom,nRight,[cShade],[nDPIThick],[nCpi])

  Description:
  ------------
  Draws a horizontal line from <nTop,nLeft> to
  <nBottom,nRight>. Based on rows and columns.

  [cShade] refers to the density of the line.

  The shading percentages are (default "100" - black) :

         "1 thru 2" = 2% shade
        "3 thru 10" = 10% shade
       "11 thru 20" = 20% shade
       "21 thru 35" = 30% shade
       "36 thru 55" = 45% shade
       "56 thru 80" = 70% shade
       "81 thru 99" = 90% shade
              "100" = 100% shade

  [nDPIThick] is the thickness in DotsPerInch of the
  line. Default is 2.

  [nCpi] is the characters per inch, and defaults to 10.

  Examples:
  ---------
   ??SL_HLINE(10,10,10,20,"50")  // draws a line 10,10 to 20,20 with
                                 //50%  shading

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_GOTO

SL_GOTO()

  Short:
  ------
  SL_GOTO() Move the printer cursor to row/col

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_GOTO(nRow,nCol)

  Description:
  ------------
  Move print head to row <nRow> and column <nCol>.
  Actual end position will depend on both LINES PER INCH and
  CHARACTERS PER INCH settings.

  Examples:
  ---------
   ?SL_GOTO(10,10)

   ??"Hello world"

   ?SL_GOTO(9,10)

   ??"Attention:"

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

SP_SL_FILL

SL_FILL()

  Short:
  ------
  SL_FILL() Fills a rectangle with shading or a pattern.

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_FILL(nTop,nLeft,nBottom,nRight,[cShade],[cFill],[nCpi],[nLpi])

  Description:
  ------------
  Fills a rectangle based on rows and columns at
  <nTop,nLeft> to <nBottom,nRight>. The area may be shaded
  [cShade] or filled with a pattern [cFill] :

  The shading percentages are (default "20") :

         "1 thru 2" = 2% shade
        "3 thru 10" = 10% shade
       "11 thru 20" = 20% shade
       "21 thru 35" = 30% shade
       "36 thru 55" = 45% shade
       "56 thru 80" = 70% shade
       "81 thru 99" = 90% shade
              "100" = 100% shade

  The pattern fills are (default "6"):

       "1" = horizontal lines
       "2" = vertical lines
       "3" = diagonal lines top right to bottom left
       "4" = diagonal lines top left to bottom right
       "5" = #1 and # 2 combined
       "6" = #3 and # 4 combined

  <nCpi> is the characters per inch, and defaults to
  10. <nLpi> is the lines per inch, and defaults to 6.

  Examples:
  ---------
   SL_FILL(10,10,20,20,"50")
    // fills from 10,10 to 20 20 with 50% shading

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_EJECT

SL_EJECT()

  Short:
  ------
  SL_EJECT() Ejects the current page

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_EJECT()

  Description:
  ------------
  Ejects the current page

  Examples:
  ---------
   ?SL_EJECT()

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_COPIES

SL_COPIES()

  Short:
  ------
  SL_COPIES() Sets the laserjet to print n copies of each page

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_COPIES(nCopies)

  Description:
  ------------
  Sets the laserjet to print <nCopies> copies of each
  page.

  Examples:
  ---------
   cCode := SL_COPIES(2)  // prints 2 or each page

   ?cCode

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_BOX

SL_BOX()

  Short:
  ------
  SL_BOX() Draws a box line from row,col to endrow,endcol

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_BOX(nTop,nLeft,nBottom,nRight,[cShade],[nDPIThick],[nCpi],[nLpi])

  Description:
  ------------
  Draws a box from nTop,nLeft to nBottom,nRight. Based
  on rows and columns.

  [cShade] refers to the density of the line.

  The shading percentages are (default "100" - black) :

         "1 thru 2" = 2% shade
        "3 thru 10" = 10% shade
       "11 thru 20" = 20% shade
       "21 thru 35" = 30% shade
       "36 thru 55" = 45% shade
       "56 thru 80" = 70% shade
       "81 thru 99" = 90% shade
              "100" = 100% shade

  [nDPIThick] is the thickness in DotsPerInch of the
  line. Default is 2.

  [nCpi] is the characters per inch, and defaults to 10.

  [nLpi] is the lines per inch, and defaults to 6.

  Examples:
  ---------
   SL_BOX(10,10,20,20,"50",10)
                     // draws a box 10,10 to 20 20 with 50%
                        //shading and 10 DPI thick

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_BOLD

SL_BOLD()

  Short:
  ------
  SL_BOLD() Sets font stroke weight to BOLD (ultra black)

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_BOLD()

  Description:
  ------------
  Sets font stroke weight to BOLD (ultra black)

  Examples:
  ---------
   ?"Now I am "+SL_BOLD()+"REALLY"+SL_NORMAL()+" mad!"

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_PRNTFRML

PRNTFRML()

  Short:
  ------
  PRNTFRML() Prints a formletter created by formletr()

  Returns:
  --------
  Nothing

  Syntax:
  -------
  PRNTFRML(cForm,[nPageWidth],[nLeftMargin])

  Description:
  ------------
  Prints the form <cForm> from FORMS.DBF with a
  pagewidth of [nPageWidth] and a left margin of [nLeftMargin]

  <cForm> is normally the contents of the template stored in FORMS.DBF
  (previous documentation refered to this parameter as the NAME of the
  form, which is incorrect.

  Examples:
  ---------
  This is used internally by FORMLETR() and FASTFORM().
  Refer to its usage there.

  SELECT 0
  USE FORM
  locate for descript = "MY FORM LETTER" // find letter
  cForm = form->memo_orig      // load contents
  USE
  SELECT MYDBF
  PRNTFRML(cForm,79)


  Source:
  -------
  S_PRNTF.PRG


 

 

SP_PRNT

PRNT()

  Short:
  ------
  PRNT() Writes a string of a given color at row, column

  Returns:
  --------
  Nothing

  Syntax:
  -------
  PRNT(nRow, nColumn, cString, nColor)

  Description:
  ------------
  <nRow>       row

  <nColumn>    column

  <cString>    string

  <nColor>     color attribute

  Examples:
  ---------
   PRNT(10,10,"Hello there",47)  // +W/G

  Notes:
  -------
  Here mainly for compatibility with older version. Was
  previously a C function.

  Source:
  -------
  S_PRNT.PRG

 

 

C5_QOUT

 QOUT()
 Display a list of expressions to the console
------------------------------------------------------------------------------
 Syntax

     QOUT([<exp list>]) --> NIL
     QQOUT([<exp list>]) --> NIL

 Arguments

     <exp list> is a comma-separated list of expressions (of any data
     type other than array or block) to display to the console.  If no
     argument is specified and QOUT() is specified, a carriage return/line
     feed pair is displayed.  If QQOUT() is specified without arguments,
     nothing displays.

 Returns

     QOUT() and QQOUT() always return NIL.

 Description

     QOUT() and QQOUT() are console functions.  These are the functional
     primitives that create the ? and ?? commands, respectively.  Like the ?
     and ?? commands, they display the results of one or more expressions to
     the console.  QOUT() outputs carriage return and line feed characters
     before displaying the results of <exp list>.  QQOUT() displays the
     results of <exp list> at the current ROW() and COL() position.  When
     QOUT() and QQOUT() display to the console, ROW() and COL() are updated.
     If SET PRINTER is ON, PROW() and PCOL() are updated instead.  If <exp
     list> is specified, both QOUT() and QQOUT() display a space between the
     results of each expression.

     You can use QOUT() and QQOUT() for console display within an expression.
     This is particularly useful for blocks, iteration functions such as
     AEVAL() and DBEVAL(), and in a list of statements in the output pattern
     of a user-defined command definition.

 Examples

     .  This example uses QOUT() with AEVAL() to list the contents of
        a literal array to the console:

        LOCAL aElements := { 1, 2, 3, 4, 5 }
        AEVAL(aElements, { |element| QOUT(element) })

 Files:     Library is CLIPPER.LIB.

See Also: ?|?? @…SAY SET ALTERNATE SET CONSOLE SET PRINTER