[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 HARDCR()
 Replace all soft carriage returns in a character string with hard carriage
 returns
------------------------------------------------------------------------------
 Syntax

     HARDCR(<cString>) --> cConvertedString

 Arguments

     <cString> is the character string or memo field to convert.

 Returns

     HARDCR() returns a character string up to 65,535 (64K) characters in
     length.

 Description

     HARDCR() is a memo function that replaces all soft carriage returns
     (CHR(141)) with hard carriage returns (CHR(13)).  It is used to display
     long character strings and memo fields containing soft carriage returns
     with console commands.  In CA-Clipper, console commands (including
     REPORT and LABEL FORM) do not automatically convert soft carriage
     returns to hard carriage returns, making it necessary for you to
     explicitly make the conversion.  Soft carriage returns are added by
     MEMOEDIT() when lines wrap.

 Notes

     .  HARDCR() in REPORT and LABEL FORMs: If HARDCR() is used in a
        REPORT FORM or LABEL FORM contents expression and not used elsewhere,
        you must declare it EXTERNAL to assure that it is linked.

 Examples

     .  To display a memo field formatted with the automatic word
        wrapping of MEMOEDIT():

        USE Sales NEW
        ? HARDCR(Sales->Notes)

 Files:  Library is EXTEND.LIB.

See Also: ?|?? EXTERNAL* LABEL FORM MEMOTRAN() REPORT FORM STRTRAN()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson