Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

ColorPanel.GetColor

Queries current color.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ColorPanel 8.3 Yes No No No No
MBS( "ColorPanel.GetColor" { ; ReturnAsNumbers } )   More

Parameters

Parameter Description Example value
ReturnAsNumbers Optional
Pass 1 to return color as list of red, green and blue, e.g. "123¶234¶56"
Pass 0 (default) for return as hex value, e.g. "7788FF".
0

Result

Returns color or error.

Description

Queries current color.
Returns color as hex values, e.g. FF0000 for red.

Examples

Query color:

Set Variable [ $c ; Value: MBS( "ColorPanel.GetColor" ) ]
If [ MBS("IsError") = 0 ]
    Set Field [ Color Panel::Color ; "#" & $c ]
End If

See also

Example Databases

Created 13th June 2018, last changed 13th June 2018


ColorPanel.Choose   -   ColorPanel.GetColorChangedEvaluate

Feedback: Report problem or ask question.




Links
MBS FileMaker blog