Lotus Symphony 1.2


Green 函數 [執行時期]

傳回給定顏色代碼的綠色成分。

語法:

Green(Color As Long)

回覆值:

Integer

參數:

Color:長整數表示式,用於指定要傳回綠色成分的顏色代碼

錯誤代碼

5 無效的程序呼叫

範例:

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


其他文件 | 商標