CENTER()

From Lianjapedia
Revision as of 06:31, 4 February 2013 by Helen.george (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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