OutStd()

OUTSTD()

Write a list of values to the standard output device

Syntax

      OUTSTD( <xExp,...> )

Arguments

<xExp, …> is a list of expressions to display. Expressions are any mixture of Harbour data types.

Description

OUTSTD() write one or more values into the standard output device. Character and Memo values are printed as is, Dates are printed according to the SET DATE FORMAT, Numeric values are converted to strings, Logical values are printed as .T. or .F., NIL are printed as NIL, values of any other kind are printed as empty string. There is one space separating each two values. Note that Numeric value can take varying length when converted into string depending on its source (see STR() for detail).

OUTSTD() is similar to QQOUT() with the different that QQOUT() send its output to the Harbour console stream, which can or can not be redirected according with the screen driver, and OUTSTD() send its output to the standard output device (STDOUT) and can be redirected.

Examples

      OUTSTD( "Hello" )            // Result: Hello

      OUTSTD( 1, .T., NIL, "A" )
      OUTSTD( "B" )                // Result:          1 .T. NIL AB

Compliance

Clipper

Files

Library is rtl

Seealso

?, ??, DEVOUT(), DEVOUTPICT(), DISPOUT(), DISPOUTAT(), OUTERR(), QOUT(), QQOUT(), STR()

Advertisements

3 responses to “OutStd()

  1. Pingback: Harbour All Functions – O | Viva Clipper !

  2. Pingback: Harbour Terminal Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s