Problem override TIBXQuery.CreateFields method
Posted: Thu 11 Aug 2011 20:40
Hi!
I ordered the IBDAC Standard and i'm trying to create a class inherited from TIBCQuery that override the CreateFields method. My intention is add a event calling OnCreateFields into this method to add calculated fields at runtime.
however when i add a calculated field on event not works. the application returns the error: "The fields is not found".
Any idea about what is happening??
I ordered the IBDAC Standard and i'm trying to create a class inherited from TIBCQuery that override the CreateFields method. My intention is add a event calling OnCreateFields into this method to add calculated fields at runtime.
Code: Select all
TIBXQuery = class(TIBCQuery)
protected
procedure CreateFields; override;
public
property OnCreateFields: TNotifyEvent read fOnCreateFields write fOnCreateFields;
end;
procedure TIBXQuery.CreateFields;
begin
inherited CreateFields;
if Assigned(fOnCreateFields) then
fOnCreateFields(Self);
end;
however when i add a calculated field on event not works. the application returns the error: "The fields is not found".
Any idea about what is happening??