Rood-functie

Returns the Red component of the specified composite color code.

Syntaxis:


Red (KleurNummer As Long)

Teruggegeven waarde:

Integer

Parameter:

ColorNumber: Long integer expression that specifies any composite color code for which to return the Red component.

Foutcodes:

5 Ongeldige aanroep van procedure

tip

The color picker dialog details the red, green and blue components of a composite color code, as well as its hexadecimal expression. Changing the color of text and selecting Custom color displays the color picker dialog.


Voorbeeld:


Sub ExampleColor
Dim lVar As Long
    lVar = rgb(128,0,200)
    MsgBox "De kleur " & lVar & " bevat de componenten:" & Chr(13) &_
        "rood= " & Red(lVar) & Chr(13)&_
        "groen= " & Green(lVar) & Chr(13)&_
        "blauw= " & Blue(lVar) & Chr(13), 64,"Kleuren"
End Sub

Help ons, alstublieft!