Hiya All

For no other reason than It intrigues me but does anyone know why the VCL
does this (from TQuery)

// Component Def
  private
    FSQL: TStrings;

// consructor

constructor TQuery.Create(AOwner: TComponent);
begin
  inherited Create(AOwner);
  FSQL := TStringList.Create;
  TStringList(SQL).OnChange := QueryChanged;
  ....

why declare as TStrings when you want a TStringList?

A mystery to me

Regards
Neven



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to