CENTER()

From Recital Documentation Wiki
Revision as of 14:46, 27 October 2009 by Helengeorge (Talk | contribs)

Jump to: navigation, search


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 Database Server, Recital Mirage Server, Recital Terminal Developer