Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > C

CTR

Scroll Prev Top Next More

(CTR(text,width))

 

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))