Green Function

āĻĒā§āϰāĻĻāĻ¤ā§āϤ āϰāϙ⧇āϰ āϕ⧋āĻĄā§‡ āϏāĻŦ⧁āϜ āωāĻĒāĻ•āϰāĻŖ āĻĢ⧇āϰāϤ āĻĒāĻžāĻ āĻžā§ŸāĨ¤

āϏāĻŋāύāĻŸā§āϝāĻžāĻ•ā§āϏ:


Green (Color As Long)

āĻĒā§āϰāĻĻāĻžāύ āĻŽāĻžāύ:

Integer

āĻĒā§āϝāĻžāϰāĻžāĻŽāĻŋāϟāĻžāϰ:

Color: āĻĻā§€āĻ°ā§āϘ āχāύāϟāĻŋāϜāĻžāϰ āĻāĻ•ā§āϏāĻĒā§āϰ⧇āĻļāύ āϝāĻžāϰ āĻŽāĻžāĻ§ā§āϝāĻŽā§‡ āϏāĻŦ⧁āϜ āĻ•āĻŽā§āĻĒā§‹āύ⧇āĻ¨ā§āϟ āĻĒā§āϰāĻĻāĻžāύ āĻ•āϰāĻžāϰ āϜāĻ¨ā§āϝ āϰāϙ⧇āϰ āϕ⧋āĻĄ āωāĻ˛ā§āϞ⧇āĻ– āĻ•āϰāĻž āĻšā§ŸāĨ¤

Error codes:

5 Invalid procedure call

āωāĻĻāĻžāĻšāϰāĻŖ:


Sub ExampleColor
Dim lVar As Long
    lVar = rgb(128,0,200)
    msgbox "The color " & lVar & " contains the components:" & Chr(13) &_
        "red = " & red(lVar) & Chr(13)&_
        "green = " & green(lVar) & Chr(13)&_
        "blue = " & blue(lVar) & Chr(13) , 64,"colors"
End Sub