Two
TFIBDatabase
methods supporting new commands RDB$GET_CONTEXT and RDB$SET_CONTEXT
implemented in Firebird 2 have been added.
function GetContextVariable (ContextSpace: TFBContextSpace; const
VarName: string): Variant;
procedure SetContextVariable (ContextSpace: TFBContextSpace; const
VarName, VarValue: string);
Note: New features 4-6 enable developers to easily use their own settings in the field repository.
Example:
If you need to set the EditMask property, add the EDIT_MASK field to the repository table; create a container; make it global by setting the IsGlobal property to True; and write the following code in the OnApplyFieldRepository event handler:
procedure TForm1.DataSetsContainer1ApplyFieldRepository(DataSet: TDataSet; Field: TField; FieldInfo: TpFIBFieldInfo);
begin
Field.EditMask:=FieldInfo.OtherInfo.Values['EDIT_MASK'];
end;
Using FIBPlus, I did everything I could only dream of with other data connectors and InterBase in 2 weeks. I am very happy with your work. Together we are successful. >>