Center

See Also: String Functions, Length, Pad, Trim

Purpose

Center returns a string of specified length with spaces added to, or characters truncated from both sides, so that the input content is centered.

Return Type

String

Syntax

(Center( {string-value}, {length} ))

What It Does

Center returns a value that has spaces added to the beginning and end of {string-value} until the length of the expression value is equal to {length}.

Move (Center("DataFlex", 50)) to sChapterName

Notes

Example

(Center("--12345678901234567890123456789", 14))

results in

--123456789012