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_softlen() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_SOFTLEN()

 DESCRIPTION

 C_SOFTLEN() returns the size a specified character string or memo
 field would be if soft carriage returns (ASCII 141) were removed
 and tab characters (ASCII 9) were expanded.  This function works in
 conjunction with C_SOFTCR() to remove soft carriage returns and tab
 characters.

 SYNTAX

 C_SOFTLEN(string)

 PARAMETERS

 string (C) is the name of the string to check.  The string can be a
 character string or a memo field.

 RETURNS

 C_SOFTLEN() returns the size the specified string would be if soft
 carriage returns were removed and tab characters were expanded to 8
 spaces.

 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_SOFTCR() C_WRAPLEN() C_WRAP() C_VIEWSTR()

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