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

 DESCRIPTION

 C_GETATTR() reads the screen attribute at a given row and column
 position and returns either a dBASE/Clipper color string or a
 numeric color code.  (Refer to Appendix E for a complete list of
 color codes.)

 SYNTAX

 C_GETATTR(row, column [,return_type])

 PARAMETERS

 row (N) is the row position on the screen.

 column (N) is the column position on the screen.

 return_type (L) is a logical flag to indicate the return type.  If
 true (.T.) is specified, C_GETATTR() returns the numeric color code
 (see Appendix E).  If false (.F.) is specified, the dBASE/Clipper
 color string is returned.  If return_type is not specified,
 C_GETATTR() will return the dBASE/Clipper color string.

 RETURNS

 C_GETATTR() returns the screen attribute for the given row and
 column as either a numeric color code (see Appendix E) or a
 dBASE/Clipper color string, depending on the return_type argument.

 EXAMPLES

 setcolor("W+/B")    && Set color to high intensity white on blue clear

 && Returns the attribute of row 5, column 5 as a dBASE/Clipper
 && color string.
 ? c_getattr(5,5) --> W+/B

 && Returns the attribute of row 10, column 1 as a numeric color code.
 ? c_getattr(10,1,.t.) --> 31


See Also: C_SETATTR() C_READSCRN() C_CHGATTR() C_BOXATTR()

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