QBColor Function/text/sbasic/shared/03010304.xhpQBColor function
QBColor Function
Returns the RGB color code of the color passed as a color value through an older MS-DOS based programming system.QBColor (ColorNumber As Integer)LongColorNumber: Any integer expression that specifies the color value of the color passed from an older MS-DOS based programming system.ColorNumber can be assigned the following values:0 : Black1 : Blue2 : Green3 : Cyan4 : Red5 : Magenta6 : Yellow7 : White8 : Gray9 : Light Blue10 : Light Green11 : Light Cyan12 : Light Red13 : Light Magenta14 : Light Yellow15 : Bright WhiteThis function is used only to convert from older MS-DOS based BASIC applications that use the above color codes. The function returns a long integer value indicating the color to be used in the $[officename] IDE.Sub ExampleQBColorDim iColor As IntegerDim sText As String iColor = 7 sText = "RGB= " & Red(QBColor( iColor) ) & ":" & Blue(QBColor( iColor) ) & ":" & Green(QBColor( iColor) ) MsgBox stext,0,"Color " & iColorEnd Sub