Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - xpadc() center fills a string up to a certain pixel http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 xPadC()                Center fills a string up to a certain pixel
--------------------------------------------------------------------------------

   Syntax:              xPadC( <cText>, <nPixels> [,<cChar>] )
                                --> <cNewText>

   Parameters:

   <cText>             The text whose character length is to be
                       adjusted.

   <nPixels>           The total length in pixels.

   <cChar>             An optional character to use to fill
                       by both sides the <cText> string.
   Returns:

   <cNewText>          A new string whose extremes side has been
                       added with extra <cChar> characters to reach
                       the <nPixels> size.

   Sample:             SOURCE\\CLASSES\\WBrowse.prg

   Source code:        SOURCE\\FUNCTION\\xPad.prg

   See also:           xPadL()  xPadR()


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson