Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
XL.Color.UnPack
Unpacks color type to red, green and blue components.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| XL | 3.5 | Yes | Yes | Yes | Yes | Yes |
MBS( "XL.Color.UnPack"; bookRef; value; selector ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| bookRef | The reference to the workbook. Please use XL.LoadBook to load a file. | $ref |
| value | The packed color value. | 255 |
| selector | The selector on what to return. Can be red, green or blue. | "red" |
Result
Returns color component value or error.
Description
Unpacks color type to red, green and blue components.Examples
Extracts color in RGB mode:
$r = MBS( "XL.Color.UnPack"; $$book; 16711680; "red")
$g = MBS( "XL.Color.UnPack"; $$book; 16711680; "green")
$b = MBS( "XL.Color.UnPack"; $$book; 16711680; "blue")
See also
- XL.Color.Pack
- XL.Font.GetColor
- XL.Format.GetBorderBottomColor
- XL.Format.GetBorderDiagonalColor
- XL.Format.GetBorderLeftColor
- XL.Format.GetBorderRightColor
- XL.Format.GetBorderTopColor
- XL.Format.GetPatternBackgroundColor
- XL.Format.GetPatternForegroundColor
- XL.LoadBook
Created 18th August 2014, last changed 18th August 2014
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins