Description This procedure sets the value of a character field. This is useful when you want to conditionally change a field's character value.
Syntax
Parameters
object_id Is always 0. (The object must always set its own attributes.)
text Is the character string you want the field to display.
/* Suppose you want to conditionally change the value of a
** Character field, based on each employee's salary.
** In the format trigger for the field, you could type the following:
*/
FUNCTION CHGFIELD RETURN BOOLEAN IS
BEGIN
if :sal >= 2000000 then
srw.set_field_char (0, 'HIGH SALARY');
end if;
RETURN (TRUE );
END;