[DUG] Comopnent question

Stacey Verner stacey at cjntech.co.nz
Wed May 24 10:29:21 NZST 2006


If you do

SQLStrings.Text := 'blah';

Then you are setting the .Text property of SQLString, not SQLStrings
itself.

TStringList has an OnChange event which you can set and then call your
sql changed stuff.

Stacey

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Robert martin
Sent: Wednesday, 24 May 2006 10:21
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Comopnent question

Hi

Heres a real simple one but its driving me mad....

I have a component with a TStrings published property as follows.

    property SQLSearchString : TStrings read fSQLStrings write
SetSQLStrings;

However whenever I change the .Text property of the TStrings the
SetSQLStrings does not seem to fire.  I'm no component guru, what am I
doing wrong ?



Rob Martin
Software Engineer

phone +64 03 377 0495
fax   +64 03 377 0496
web www.chreos.com

Wild Software Ltd
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi



More information about the Delphi mailing list