| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Replaces "carriage return/line feed" pairs in a character string.
MemoTran( <cString> , ;
[<cReplaceHardCRLF>], ;
[<cReplaceSoftCRLF>] ) --> cNewString
The function returns a copy of <cString> where all carriage return / line feed pairs are replaced.
The function replaces hard and soft carriage return/line feed pairs with single characters in a memo field or a character string. A hard carriage return is Chr(13), while a soft carriage return is Chr(141). The latter is inserted into a text string by function MemoEdit() when automatic word wrap is set to .T. (true).
| See also: | HardCR(), MemoEdit(), StrTran() |
| Category: | Character functions , Memo functions |
| Source: | rtl\mtran.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
http://www.xHarbour.com