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

 DESCRIPTION

 C_SETNCOLOR() gets and sets colors in a Clipper program using
 numeric color codes instead of the dBASE/Clipper color strings.
 (Refer to Appendix E for a complete list of numeric color codes.)

 NOTES

 This function keeps Clipper's internal color updated, therefore
 C_SETNCOLOR() and Clipper's SETCOLOR() can be used in conjunction
 with one another.

 SYNTAX

 C_SETNCOLOR(color_code)

 PARAMETERS

 color_code (N) is the numeric color code (see Appendix E) to set
 for the new color.  If color_code is not specified, C_SETNCOLOR()
 returns the current color.

 RETURNS

 C_SETNCOLOR() returns the numeric color code (see Appendix E) for
 the current color set in the Clipper program.

 EXAMPLES

 c_setncolor(31)    && Set color to high intensity white on blue
 ...
 ...
 row = 1
 col = 0
 for i = 1 to 127         && Display a single block of all colors 1-127
   c_setncolor(i)         && Set color using numeric color code
   @ row,col say " "      && Display color block
   col = col + 1
   if col > 20
     row = row + 1
     col = 0
   endif
 next


See Also: C_DBCOLOR() C_NCOLOR()

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