Harbour RG Overwiew

Harbour is in developing stage and there isn’t a complete reference guide.

Like others , this work is only an attempt, not complete and probably never will be  …

Harbour Documentation

Harbour Reference Guide Summary

Harbour In General

Commands

Classes

Functions

Statements

Harbour Messages

 Beware : This guide isn’t complete; and building a complete Harbour guide is impossible, at least for me 😦

HB_EOL()

HB_EOL()

Returns the newline character(s) to use with the current OS

Syntax

      hb_eol() --> cString

Returns

<cString> A character string containing the character or characters required to move the screen cursor or print head to the start of a new line.

Description

Returns a character string containing the character or characters required to move the screen cursor or print head to the start of a new line for the operating system that the program is running on (or thinks it is running on, if an OS emulator is being used).

Under HB_OS_UNIX operating system the return value is the Line-Feed character (0x0a, CHR(10)); with other operating systems (like DOS) the return value is the Carriage-Return plus Line-Feed characters (0x0d 0x0a, CHR(13)+CHR(10)).

Examples

      // Get the newline character(s) for the current OS.
      // Get the newline character(s) for the current OS.
      STATIC s_cNewLine
      ...
      s_cNewLine := hb_eol()
      ...
      OutStd( "Hello World!" + s_cNewLine )

Tests

      ? ValType( hb_eol() ) == "C"
      ? Len( hb_eol() ) == 1

Compliance

Harbour

Platforms

All

Files

Library is rtl

Seealso

OS(), OUTSTD(), OUTERR()

SP Array Functions

 ASORTMULTR()   Sort multiple arrays based on sort of primary array
                (descending)
 ASORTMULT()    Sort multiple arrays based on sort of primary array
 ASTDDEV()      Determines the standard deviation of an array with
                optional conditional set
 ASUM()         Determines the sum of an array with optional
                conditional set
 AMSUM()        Sum on a given element of multi-dim array
 ARRAY2DBF()    Replaces the current record with the values in an array
 AMVARIANCE()   Variance on a given element of multi-dim array
 AMSTDDEV()     Standard Deviation on a given element of multi-dim array
 DELARRAY()     Deletes all elements of an array
 DBF2ARRAY()    Returns an array of values for the current record
 FILLARR()      Fill type, length, decimal arrays
 AUPDATED()     Determines if an array contains updated values for the
                current record
 AVARIANCE()    Determines the variance of an array with optional
                conditional set
 BLDARR()       Builds an array from a delimited string
 BIGELEM()      Returns length of longest string in an array
 A2TOSING()     Copies a given element from an array of arrays
 AFTYPESX()     Returns an array of field types for current dbf
 AFLENSX()      Returns an array of field LENGTHS for current dbf
 AKOUNT()       Counts exact matches of value in array
 AASKIP()       Use for skipblock for arrays in Tbrowse
 AFDECIX()      Returns an array of field DECIMALS for current dbf
 AFIELDSX()     Returns an array of field names for current dbf
 AEXTRACT()     Extract and return a conditional set from an array
 AFIELDSTYPE()  Returns an array of field names of particular type
 AMATCHES()     Counts the matches of an array with optional
                conditional set
 AAVERAGE()     Determines the average of an array with optional
                conditional set
 AMAVERAGE()    Average on a given element of multi-dim array
 ALENG()        Actual length of an array, less trailing nil elements