Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_softcr() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_SOFTCR()

 DESCRIPTION

 C_SOFTCR() removes soft carriage returns (ASCII 141) from the
 specified character string or memo field variable.  C_SOFTCR() also
 expands each tab character found to 8 spaces.

 SYNTAX

 C_SOFTCR(src_string, tar_string)

 PARAMETERS

 src_string (C) is the name of the source string to convert.  The
 string can be a character string or a memo field.  The src_string
 will be converted and placed in tar_string so the contents of
 src_string remain unchanged.

 tar_string (C) is the name of the target string to place the
 converted text.  The tar_string argument must be declared to the
 correct size before calling this function.  Use C_SOFTLEN() to
 determine the size needed when the string is converted.

 RETURNS

 There is no return value.

 EXAMPLES

 use test

 xmemo = test->memofld      && store database memo field

 xlen = c_softlen(xmemo)    && get length of target string

 new_xmemo = space(xlen)    && allocate space for target string

 c_softcr(xmemo,new_xmemo)  && convert string


See Also: C_SOFTLEN() C_WRAPLEN() C_WRAP() C_VIEWSTR()

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