Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>memotran()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MEMOTRAN()


Syntax:     MEMOTRAN(<expC1> [,<expC2> [,<expC3>]])

Purpose:    To replace carriage return/line feed pairs.

Arguments:  <expC1> is the character string or memo field to replace
            soft or hard carriage returns in.

            <expC2> is the character you specify to replace a hard
            carriage return/line feed pair.

            <expC3> is the character you specify to replace a soft
            carriage return/line feed pair.

Returns:    A character string.

            If you do not specify <expC2> and <expC3>, MEMOTRAN()
            replaces all hard carriage returns with semicolons, all soft
            carriage returns with spaces, and eliminates all line feeds.

Usage:      The default replacement values accommodate the requirements
            of the REPORT FORM command.

            If you invoke a REPORT FORM that uses MEMOTRAN() and do not
            use MEMOTRAN() anywhere else in the program, be sure to
            declare MEMOTRAN() to the linker with EXTERNAL.

Library:    EXTEND.LIB


----------------------------------- Example --------------------------------

   To strip all formatting characters from a memo field.

   REPLACE Notes WITH MEMOTRAN(Notes, " ", " ")


See Also: HARDCR() STRTRAN()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson