Subject Fill field's value with it's default value at runtime
Author Hie Joen
Dear List,

Is there a way to fill field's value with it's value at runtime w/o
knowing the data type ? I can't find a specific one.

Scenario:
I have FieldA, FieldB, FieldC, FieldD
If FieldA contains specific value (entry by user) FieldB..FieldD should
filled with their default value.

In TIB_Column.INT I found private member FDefaultValue. I try to add a new
public method for this purpose.

My implementaion is:

procedure TIB_Column.SetToDefaultValue;
begin
if IsDefaulted then
SetAsVariant(FDefaultValue)
else
Clear;
end;


It's work. Any side effects with above code ?


TIA
HJ