Difference between revisions of "ALLTRIM()"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
Helen.george (Talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to remove leading and trailing spaces | Function to remove leading and trailing spaces | ||
− | |||
==Syntax== | ==Syntax== | ||
ALLTRIM(<expC>)]] | ALLTRIM(<expC>)]] | ||
− | |||
==Description== | ==Description== | ||
The ALLTRIM() function trims leading and trailing spaces from the character expression <expC>. This function should be used in conjunction with the RPAD() function when used in index expressions. | The ALLTRIM() function trims leading and trailing spaces from the character expression <expC>. This function should be used in conjunction with the RPAD() function when used in index expressions. | ||
− | |||
==See Also== | ==See Also== | ||
[[LPAD()]], [[LTRIM()]], [[RPAD()]], [[RTRIM()]], [[SET STRESCAPE]], [[STRTRAN()]], [[TRIM()]] | [[LPAD()]], [[LTRIM()]], [[RPAD()]], [[RTRIM()]], [[SET STRESCAPE]], [[STRTRAN()]], [[TRIM()]] | ||
− | |||
==Example== | ==Example== | ||
Line 27: | Line 23: | ||
5 | 5 | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== | ||
Line 33: | Line 28: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:String Data Functions]] | [[Category:String Data Functions]] |
Latest revision as of 06:23, 4 February 2013
Purpose
Function to remove leading and trailing spaces
Syntax
ALLTRIM(<expC>)]]
Description
The ALLTRIM() function trims leading and trailing spaces from the character expression <expC>. This function should be used in conjunction with the RPAD() function when used in index expressions.
See Also
LPAD(), LTRIM(), RPAD(), RTRIM(), SET STRESCAPE, STRTRAN(), TRIM()
Example
name=" Peter " ? len(name) 15 ? name Peter ? alltrim(name) Peter ? len(alltrim(name)) 5
Products
Lianja Server, Lianja