xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

MemoTran()

Replaces "carriage return/line feed" pairs in a character string.

Syntax

MemoTran( <cString>          , ;
         [<cReplaceHardCRLF>], ;
         [<cReplaceSoftCRLF>]  ) --> cNewString

Arguments

<cString>
A character string or memo field to replace carriage return/line feed pairs in.
<cReplaceHardCRLF>
A single character used to replace hard carriage return/line feed pairs with. It defaults to a semicolon (;).
<cReplaceSoftCRLF>
A single character used to replace soft carriage return/line feed pairs with. It defaults to a blank space.

Return

The function returns a copy of <cString> where all carriage return / line feed pairs are replaced.

Description

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).

Info

See also:HardCR(), MemoEdit(), StrTran()
Category: Character functions , Memo functions
Source:rtl\mtran.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe