Language Reference Guide : 4. System Classes : CellAttribute Class : UpdForeground Method
 
Share this page                  
UpdForeground Method
The UpdForeground method forces a change to the foreground of a bar field displayed as a field in a table field.
This method has the following syntax:
table_field[index].column_field.UpdForeground()
Invoke this method to refresh the display of a bar field displayed in a table field after you have changed the contents of the BitmapObject object referenced by the FgBitmap attribute.
You do not need to use this method if you explicitly change the FgBitmap attribute to use a different BitmapObject for the bar field foreground. You only need to call this method if you load a different image into the same BitmapObject already pointed to by the FgBitmap attribute using, for instance, the DBHandle attribute. For example:
field(personaldata[*].name).CellAttribute(record =
field(personaldata).CurRow).FgBitmap.DBHandle =
bitmap_table[1].Handle;
field(personaldata[*].name).UpdForeground();