Skip to content

Field Properties - Barcode Tab - Background Color

Select a color for the background of the barcode from the predefined colors shown in the combobox or return a color via a function using one of the [predefined color constants](../../../../explanations/functions/language-elements/constants/colors.md) or an [RGB()](../../../../explanations/functions/miscellaneous/rgb.md) function.

An example for a color function:

```dataflex
if {OrderDtl.Qty_Ordered} < 0 then
    return drRed
else
    return drBlack
end
```