![]() |
Next Page |
| Contents > Functions reference (alphabetical list) > Text formatting functions > TextColor function |
|
|
| TextColor function |
| Format |
TextColor(text;RGB(red;green;blue)) |
| Parameters |
| text - any text expression or text field |
| RGB(red;green;blue) - any integer number from 0 to 16777215 obtained by combining the red, green, and blue values (each ranging from 0 to 255) to represent a color |
| Data type returned |
| text |
| Description |
| Changes the color of text to the color specified by the RGB function. |
| Note Text formatting options will be lost if the data type that is returned is something other than text. |
| Tip To determine the RGB value of a color: |
| (Windows) In Layout mode, click the Fill Color palette and choose Other Color. Values are shown for each of the basic colors. |
| (Mac OS) Start the DigitalColor Meter application in the Applications/Utilities folder. Choose RGB As Actual Value, 8-bit. Move the pointer over colors onscreen to see their values. |
| Examples |
| TextColor("Plaid";RGB(255;0;0)) returns the word Plaid in red. |
| TextColor("Plaid";RGB(0;255;0)) returns the word Plaid in green. |
| TextColor("Plaid";RGB(0;0;255)) returns the word Plaid in blue. |
| TextColor("Plaid";RGB(0;0;0)) returns the word Plaid in black. |
| Related topics |
| Functions reference (category list) |
| Functions reference (alphabetical list) |
| About formulas |
| About functions |
| Defining calculation fields |
| Using operators in formulas |
|
|
| Contents > Functions reference (alphabetical list) > Text formatting functions > TextColor function | Next Page |