GetText

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rogerbundy
Posts: 3
Joined: Thu 11 Nov 2004 08:40

GetText

Post by rogerbundy » Sun 05 Jun 2005 15:55

I have noticed that the ttable GetText procedure for tables (specific fields in table) is not fired until you actually try to reference the field on the screen (via a grid).
Under ttable native access, the GetText procedure is fired as soon as you open the table.
Any thoughts on how I can force this procedure to fire on open.

I am using it to reformat (or not display) dates.

SDAC 3.00.2.9, Delphi 7.1

procedure TForm1.MSTable1Invoice_DateGetText(Sender: TField;
var Text: String; DisplayText: Boolean);
var
strtemp: string;
begin
strtemp := Sender.AsString;
end;

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Mon 06 Jun 2005 14:10

According to Borland concept OnGetText is called on Field.DisplayText and Field.Text calls.

Post Reply