Usage
Function ZAP.Common.ColorMakeFromRGB (
Integer Red,
Integer Green,
Integer Blue
)
ZAP Utility
ZAP...FromRGB
128
128
128
color
Integer Red
Integer Green
Integer Blue
Output Parameter
Parameters
Red
Type: Integer
Red channel
Green
Type: Integer
Green channel
Blue
Type: Integer
Blue channel
Returns
Integer Argb color structure
Example
VBScript
' Make gray (RGB 128, 128, 128) color and set its value to Text Color property
color = Zap.Common.ColorMakeFromRGB(128, 128, 128)
Application("Demo").View("DemoView").Object("DemoObject").SetProperty "Text Color", Zap.Common.ConvertIntToString(color)
JavaScript
// Make gray (RGB 128, 128, 128) color and set its value to Text Color property
var color = Zap.Common.ColorMakeFromRGB(128, 128, 128);
Application("Demo").View("DemoView").Object("DemoObject").SetProperty("Text Color", Zap.Common.ConvertIntToString(color));
ZAP Utility
Zap...FromRGB
128
128
128
color
ZAP Utility
Zap...IntToString
Zap.Var.."color")
strColor
Step
SetProperty
Text Color
Zap...strColor")

Comment
Make gray (RGB 128, 128, 128) color, convert it to string and set as value to Text Color property