CENTER()

From Lianjapedia
Revision as of 12:31, 7 December 2012 by Admin (Talk | contribs)

Jump to: navigation, search

Purpose

Function to center a character expression

Syntax

CENTER(<expC>,<expN>)

CENTRE(<expC>,<expN>)

See Also

LPAD(), RPAD()

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