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_bcenter() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_BCENTER()

 DESCRIPTION

 The C_BCENTER() function centers and displays data of any type,
 with the exception of memo and array, between two box or column
 coordinates in a specified color.

 SYNTAX

 C_BCENTER(row, st_col, end_col [,color], data)

 PARAMETERS

 row (N) is the starting row to center the data.

 st_col (N) is the starting column (left side) to center the data.

 end_col (N) is the ending column (right side) to center the data.

 color (C) is the color to display the data.  If color is not
 specified, the current Clipper color is used.

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

 RETURNS

 There is no return value.

 EXAMPLES

 c_bcenter(5,0,79,"W/B",1234.78)   && Center number at row 5
 c_bcenter(6,0,79,"W/B",date())    && Center date at row 6
 c_bcenter(7,0,79,"W/B",.T.)       && Center logical at row 7

 s1 = "Line of Text"

 setcolor("W/R")
 @ 10,0 to 20,25 double        && Draw double box in white on red

 c_bcenter(12,0,25,"N/R",s1)   && Center string s1 in box
 c_bcenter(12,0,25,"",s1)      && Center string s1 in box in default color


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

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