Difference between revisions of "CENTER()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(2 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 | ||
Line 34: | Line 30: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:String Data]] | ||
+ | [[Category:String Data Functions]] |
Latest revision as of 16:05, 27 November 2009
Purpose
Function to center a character expression
Syntax
CENTER(<expC>,<expN>)
CENTRE(<expC>,<expN>)
See Also
BOLD(), LPAD(), MESSAGE, REVERSE(), RPAD(), SET MESSAGE, UNDERLINE()
Description
The CENTER() function centers the character expression <expC> into a character string which is <expN> characters wide. Note that if the MESSAGE or SET MESSAGE TO commands are used, the message text is automatically centered.
Example
? center("Recital", 20) Recital ? "'" + center("Recital", 20) + "'" ' Recital heading = center("Recital", 20) ? type("heading") C
Products
Recital Server, Recital