Difference between revisions of "LEN()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (→See Also) |
|||
(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 | ||
− | |||
==Syntax== | ==Syntax== | ||
LEN(<exp>[,<expL>]) | LEN(<exp>[,<expL>]) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[AT()]], [[LEFT()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STREXTRACT()]], [[STRLEN()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] | + | [[AT()]], [[LEFT()]], [[LENC()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STR_COMPRESS()]], [[STR_UNCOMPRESS()]], [[STREXTRACT()]], [[STRLEN()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] |
− | + | ||
==Description== | ==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. | + | 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. The optional <expL> is ignored. |
+ | Use the [[LENC()]] function when working with Unicode/UTF-8 characters. | ||
==Example== | ==Example== | ||
Line 25: | Line 23: | ||
? len("") | ? len("") | ||
0 | 0 | ||
− | |||
− | |||
− | |||
− | |||
</code> | </code> | ||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:String Data Functions]] |
Latest revision as of 12:45, 22 March 2021
Contents
Purpose
Function to return length of specified expression
Syntax
LEN(<exp>[,<expL>])
See Also
AT(), LEFT(), LENC(), RAT(), RIGHT(), SET STRESCAPE, STR_COMPRESS(), STR_UNCOMPRESS(), 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. The optional <expL> is ignored.
Use the LENC() function when working with Unicode/UTF-8 characters.
Example
open database southwind use example ? len(last_name) 16 ? len(notes) 8851 ? len("") 0