QBColor Function

   
QBColor Function

Class

Microsoft.VisualBasic.Information

Syntax

 QBColor(   color   ) 
color (required; Integer)

A whole number between 0-15

Return Value

Long

Description

Returns a Long integer representing the RGB system color code

Rules at a Glance

color can have any of the following values:

Number

Color

Black

1

Blue

2

Green

3

Cyan

4

Red

5

Magenta

6

Yellow

7

White

8

Gray

9

Light Blue

10

Light Green

11

Light Cyan

12

Light Red

13

Light Magenta

14

Light Yellow

15

Bright White

Programming Tips and Gotchas

  • The RGB function allows much more flexibility than the older QBColor function, which is a remnant of QBasic.

  • Visual Basic now contains a wide range of intrinsic color constants that can be used to assign colors directly to color properties of objects.

See Also

RGB Function

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net