Re: [DUG] Enable CheckBox

2010-04-27 Thread Rogério Martins
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

Re: [DUG] Enable CheckBox

2010-04-27 Thread Jeremy Coulter
] 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 <> &

Re: [DUG] Enable CheckBox

2010-04-27 Thread Bob Pawley
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

Re: [DUG] Enable CheckBox

2010-04-26 Thread David O'Brien
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

Re: [DUG] Enable CheckBox

2010-04-26 Thread Colin Johnsun
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

Re: [DUG] Enable CheckBox

2010-04-26 Thread Jeremy Coulter
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:

Re: [DUG] Enable CheckBox

2010-04-26 Thread Jolyon Smith
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

Re: [DUG] Enable CheckBox

2010-04-26 Thread Kyley Harris
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

Re: [DUG] Enable CheckBox

2010-04-26 Thread John Bird
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

Re: [DUG] Enable CheckBox

2010-04-26 Thread David O'Brien
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

Re: [DUG] Enable CheckBox

2010-04-26 Thread Colin Johnsun
(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

Re: [DUG] Enable CheckBox

2010-04-26 Thread Ian Drower
  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

Re: [DUG] Enable CheckBox

2010-04-26 Thread David O'Brien
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

[DUG] Enable CheckBox

2010-04-26 Thread Bob Pawley
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