Dynamically changes the setting of theproperty of a control.
Used to set the new foreground (text) color. Identifies a color by using thevalue of the color.
This function is not supported in the RoleTailored client.
This function can only be called from thetrigger of the control
The intended use of this function is to display controls of selected records in a tabular form in a specific foreground (text) color. The color set by theproperty causes all rows to be displayed in this color. By using this function, you can select individual records where the color should be used, based on, for example, the current value of some other field, like the following cod example.
IF Amount < 0 THEN CurrForm.Amount.UPDATEFORECOLOR(255);
This would display the Amount control with red as the foreground color. For detailed information about the integer value to use to specify a color, see.