Box4.Enabled := true
> else
> DBCheckBox4.Enabled := false
>
> - Original Message -
> *From:* Colin Johnsun
> *To:* NZ Borland Developers Group - Delphi List
> *Sent:* Monday, April 26, 2010 5:53 PM
> *Subject:* Re: [DUG] Enable CheckBox
>
> Yeah, that
] On
Behalf Of Bob Pawley
Sent: Wednesday, 28 April 2010 03:51
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Enable CheckBox
Hi
The following works well and it is simple enough that I can almost
understand it.
Thanks everyone.
Bob
if DBEdit2.Text <> &
s Group - Delphi List
Sent: Monday, April 26, 2010 5:53 PM
Subject: Re: [DUG] Enable CheckBox
Yeah, that was my thinking on the topic too! But you said it much better :)
BTW, I'm wondering if Bob, the originator of this thread, wants to chime in
and let us know if any of these sugg
Smith
Sent: Tuesday, 27 April 2010 12:34 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Enable CheckBox
Maybe it's just me, but "A doesn't equal B" surely reads more closely to
the real meaning than "not (A does equal B)".
Apart
Yeah, that was my thinking on the topic too! But you said it much better :)
BTW, I'm wondering if Bob, the originator of this thread, wants to chime in
and let us know if any of these suggestions helped or not.
On 27 April 2010 10:34, Jolyon Smith wrote:
> Maybe it’s just me, but “A doesn’t eq
n I write… A
> <> B.
>
>
>
> But as I say, maybe it’s just me.
>
>
>
> NOT (I think like a computer).
>
>
>
> ;)
>
>
>
> *From:* delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> *On Behalf Of *David O'Brien
> *Sent:
lin Johnsun
Sent: Tuesday, 27 April 2010 11:47 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Enable CheckBox
I like David's version but why not get rid of the "not" to:
DBCheckBox4.Enabled := DBEdit2.Text <> '';
Cheers,
On
Bob.. Are you saying that Empty space is also considered no data?
in that case..
Control.Enabled := Trim(Text) <> '';
is likely what you want to test for.
On Tue, Apr 27, 2010 at 10:39 AM, Bob Pawley wrote:
> Hi
>
> I am attempting to enable a checkbox only when a DBEdit has a value.
> (Disa
evelopers Group - Delphi List
Sent: Tuesday, April 27, 2010 10:52 AM
Subject: Re: [DUG] Enable CheckBox
Why the four quotes in the false and a space in the true?
I would use something like:
DBCheckBox4.Enabled := not (DBEdit2.Text = '') ;
From: del
27;') ;
From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Bob Pawley
Sent: Tuesday, 27 April 2010 10:39 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Enable CheckBox
Hi
(DBEdit2.Text = '') ;
>
>
>
> *From:* delphi-boun...@delphi.org.nz
> [mailto:delphi-boun...@delphi.org.nz]
> *On Behalf Of *Bob Pawley
> *Sent:* Tuesday, 27 April 2010 10:39 a.m.
> *To:* NZ Borland Developers Group - Delphi List
> *Subject:* [DUG] Enable Chec
DBCheckBox4.Enabled
:=
not (DBEdit2.Text = '') ;
From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Bob Pawley
Sent: Tuesday, 27 April 2010 10:39 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Enable CheckBox
NZ Borland Developers Group - Delphi List
Subject: [DUG] Enable CheckBox
Hi
I am attempting to enable a checkbox only when a DBEdit has a value.
(Disabled when no string in DBEdit.)
Following is my code which disables the CheckBox after a delete from the
DBEdit.
But it is not enab
Hi
I am attempting to enable a checkbox only when a DBEdit has a value. (Disabled
when no string in DBEdit.)
Following is my code which disables the CheckBox after a delete from the DBEdit.
But it is not enabled when I add a string to the DBEdit.
--
procedure TForm4.DBEdit2Change(Sender: TO
14 matches
Mail list logo