[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FUNCTION CENTR()
Short:
------
CENTR() Centers a string in x spaces
Returns:
--------
<cCentered> => String centered
Syntax:
-------
CENTR(cInString,[nSpaces])
Description:
------------
Centers <cInString> in [nSpaces] spaces
[nSpaces] spaces is optional. Default is current
string length
Examples:
---------
cString := "Superfunction "
cString := CENTR(cString,20) // => " Superfunction "
Notes:
-------
In Clipper 5.01, use PADC(), which does the same
thing and faster. Here for compatibility.
Source:
-------
S_CENTR.PRG
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson