Skip to content

Field Properties - Barcode Tab - Color

Select a color for the barcode from the predefined colors shown in the combobox or return a color via a function using one of the predefined color constants or an RGB() function.

Example of a Color Function

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

Notes

Barcode Scanning Relies on Contrast

The fundamental principle of barcode reading is high contrast between the dark elements (the bars) and the light elements (the spaces).

  • Bars: Must be a dark color (e.g., black, dark blue, dark green). They are designed to absorb the scanner's light.
  • Spaces/Background: Must be a light color (e.g., white, light yellow, light orange). They are designed to reflect the scanner's light.

The difference in light reflection between the bars and the spaces is what the scanner reads. A perfect reading environment is black bars on a white background.

Because of this, barcode fields do not support transparency.