Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_middle() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_MIDDLE()

 DESCRIPTION

 The C_MIDDLE() function takes data of any type, with the exception
 of memo and array, converts it to character data and pads the
 string with spaces.  The character string returned is suitable for
 centering with Clipper's @ SAY command.

 SYNTAX

 C_MIDDLE(data)

 PARAMETERS

 data (C/N/D/L) is the data to pad.  The data can be any of the
 following data types:  character, numeric, date, or logical.

 RETURNS

 C_MIDDLE() returns a character string padded to the left of the
 string with enough spaces to center the string at the given @ SAY
 column coordinates.

 EXAMPLES

 s1 = "Line of Text"

 @ 5,0  say c_middle(1234.78)   && Center number on screen at row 5
 @ 6,0  say c_middle(date())    && Center date on screen at row 6
 @ 9,20 say c_middle(s1)        && Center string s1 at row 12, column 50
                                && (50 is centered between column 20 and 79)


See Also: C_CENTER() C_BCENTER() C_MSG() C_ERR()

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