| Name: | CTR | Syntax: | (CTR(text,width)) |
|---|---|---|---|
| Family: | Function | Category: | String Manipulation |
| Description: | Centers a string | ||
CTR centers text in width characters, returning a text string. In the following example, the value of vctr is " ABCD ". The text string is centered in a 10-character field.
SET VAR vctr = (CTR('ABCD',10))