Example 1
In this example, the expression sets the Windows Background color for the measuring point field if it is editable and Button Face color if the measuring point field is protected. This expression is used together with the field protection expression. The expression does not apply to the Function Check or Switch Set Point calibration types.
if(calib_set_no_pnt=1 and cmpnt_id<>0 and calib_type_id<>2 and calib_type_id<>3,1073741824,67108864)
Background Color |
Value |
Description |
---|---|---|
Windows Background |
1073741824 |
Standard background color indicating that the field is enabled for editing |
Button Face |
67108864 |
Standard background color indicating that the field is disabled for editing. |
Example 2
In this example, the expression sets the red background for the As Found tolerance field if the field value exceeds the tolerance value.
If(as_found > tolerance, rgb(255,0,0),1073741824)
The following table describes the background color use in the IF expression.
Background Color |
Value |
Description |
---|---|---|
RGB |
Value from 1 to 255 in the function rgb(0,0,0) |
Colored background indicating that the field value exceeds the allowed limit |
Windows Background |
1073741824 |
Standard background color indicating that the field is enabled for editing |