|
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;
Waaaaw, what a difference in support with IBO, most of the time when I asked something there, I got a arrogant answer. This is really great and I must say, there is a significant difference in speed that FIBPlus is faster! >>