Function HardCR() Foundation
Replaces soft returns in a character string with hard returns.
HardCR( <cString> ) --> cString
HardCR() returns a copy of <cString> in which all Chr(141) characters are replaced with Chr(13) characters.
When a long character string is edited using the function MemoEdit(), it automatically formats the string by inserting soft returns (Chr(141)+Chr(10)). These soft returns can be replaced before storing the character string and must be replaced before their output. The function HardCR() replaces the soft returns with hard returns (Chr(13)+Chr(10)). MemoTran() is a similar function which replaces soft returns with characters other than Chr(13)+Chr(10).
// In the example, Chr(141)+Chr(10) in a memo field
// is replaced before display with Chr(13)+Chr(10)
PROCEDURE Main
USE Customer NEW
? HardCR( Customer->memos )
USE
RETURN
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.