<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I am attempting to enable a checkbox only when a
DBEdit has a value. (Disabled when no string in DBEdit.)</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Following is my code which disables the CheckBox
after a delete from the DBEdit.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>But it is not enabled when I add a string to the
DBEdit.</FONT></DIV>
<DIV><FONT size=2 face=Arial>------</FONT></DIV>
<DIV><FONT size=2 face=Arial>procedure TForm4.DBEdit2Change(Sender:
TObject);<BR>begin</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial> if<BR> DBEdit2.Text
= ' '</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial> then<BR> DBCheckBox4.Enabled :=
True</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial> Else if DBEdit2.Text = ''''</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial> then<BR> DBCheckBox4.Enabled :=
False ;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>end;</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks for any help.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Bob</FONT></DIV></BODY></HTML>