Difference between revisions of "LEN()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to return length of specified expression | Function to return length of specified expression | ||
Line 12: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[AT()]], [[LEFT()]], [[RAT()]], [[RIGHT()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] | + | [[AT()]], [[LEFT()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STREXTRACT()]], [[STRLEN()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] |
Line 21: | Line 17: | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | ? len( | + | open database southwind |
− | + | use example | |
− | ? len( | + | ? len(last_name) |
− | + | 16 | |
+ | ? len(notes) | ||
+ | 8851 | ||
? len("") | ? len("") | ||
0 | 0 | ||
Line 35: | Line 33: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 13:24, 21 July 2010
Purpose
Function to return length of specified expression
Syntax
LEN(<exp>[,<expL>])
See Also
AT(), LEFT(), RAT(), RIGHT(), SET STRESCAPE, STREXTRACT(), STRLEN(), STRTRAN(), STUFF(), SUBSTR()
Description
The LEN() function returns the output width of the specified expression <exp>. The expression can be of any data type, including memo fields and arrays. When checking the length of character expressions, the optional <expL> can be specified. If <expL> is specified and evaluates to .T. (true), the LEN() function will return the length of the character expression after stripping any formatting options such as BOLD().
Example
open database southwind use example ? len(last_name) 16 ? len(notes) 8851 ? len("") 0 ? len(bold("Hello")) 9 ? len(bold("Hello"),.T.) 5
Products
Recital Server, Recital