Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>converts clipper colour string to numeric attribute</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Converts Clipper colour string to numeric attribute
------------------------------------------------------------------------------

 Syntax

       GT_ColorToN(<cColourString>) --> <nAttribute>

 Arguments:

     <cColourString> is the Clipper colour string to convert to an
                     numeric attribute

 Returns:

     NIL

 Description:

     Converts a Clipper colour string into an attribute numeric.  It only
     looks at the first parameter of the string.  ie:

     nAttribute := GT_ColorToN("W+/B,N/W")
                             ....-This is used

     Note: The module also includes a C/ASM callable function equivelant
           in the form of:

              void int gt_ColorToN (char *string);

 Examples:

     nAttribute := GT_ColorToN("W+/B")     // Result: 31

 Source: COLORTON.C

 Author:  Ian 'UnNamedDude' Day (L&W Computer Services Ltd.)

See Also: GT_NTOCOLOR()

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