Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>center()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CENTER()

    Ah yes, number one on the UDF Hit Parade!! CENTER() centers
    character strings, either on the screen or the printer, at the row
    you specify.

    Syntax

    CENTER(<row>, <string> [, <length> ] [, <color> ])

    Required Parameters

    <row> is a numeric expression representing the row on which to
    center the string.

    <string> is the character string or expression to be centered.

    Optional Parameters

    <length> is a numeric expression representing the length of a row
    (default length is 80 for screen displays, but you may use values of
    up to 255 when printing wide reports).

    <color> is a character expression representing the color in which
    to display the string.

    Return Value

    Nothing worth writing home about...

    Sample usage

    CENTER(0,'Change Order Data Input Screen')        
    CENTER(0,'Change Order Data Input Screen',,'+w/r')
    CENTER(1,'WACKY WIDGETS PROFIT SHEET', 132)       

    Clipper 5.0 Notes

    - CENTER() is now a preprocessor function to totally preclude naming
      conflicts.  Therefore, you must put this line at the top of any
      .PRG referring to CENTER():

      #include "grump.ch"

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