Difference between revisions of "CENTER()"
From Lianjapedia
Helen.george (Talk | contribs) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to center a character expression | Function to center a character expression | ||
− | |||
==Syntax== | ==Syntax== | ||
Line 7: | Line 6: | ||
CENTRE(<expC>,<expN>) | CENTRE(<expC>,<expN>) | ||
− | |||
==See Also== | ==See Also== | ||
− | + | [[LPAD()]], [[RPAD()]] | |
− | + | ||
==Description== | ==Description== | ||
− | The CENTER() function centers the character expression <expC> into a character string which is <expN> characters wide. | + | The CENTER() function centers the character expression <expC> into a character string which is <expN> characters wide. |
− | + | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | ? center(" | + | ? center("Lianja", 20) |
− | + | Lianja | |
− | ? "'" + center(" | + | ? "'" + center("Lianja", 20) + "'" |
− | ' | + | ' Lianja |
− | heading = center(" | + | heading = center("Lianja", 20) |
? type("heading") | ? type("heading") | ||
C | C | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:String Data Functions]] | [[Category:String Data Functions]] |
Latest revision as of 06:31, 4 February 2013
Contents
Purpose
Function to center a character expression
Syntax
CENTER(<expC>,<expN>)
CENTRE(<expC>,<expN>)
See Also
Description
The CENTER() function centers the character expression <expC> into a character string which is <expN> characters wide.
Example
? center("Lianja", 20) Lianja ? "'" + center("Lianja", 20) + "'" ' Lianja heading = center("Lianja", 20) ? type("heading") C