Board index » delphi » DBCheckBox Questions?
Joaquim Macedo
![]() Delphi Developer |
Mon, 05 Jan 2004 23:50:49 GMT
|
Joaquim Macedo
![]() Delphi Developer |
Mon, 05 Jan 2004 23:50:49 GMT
DBCheckBox Questions?Hi all. I'm using Delphi 5 Enterprise and MS Access 97. Using a DBCheckBox I would like that: Another question - DBCheckBox usually has 3 states: Checked, Not Thanks a lot in advance. Best regards, |
Team
![]() Delphi Developer |
Tue, 06 Jan 2004 03:43:38 GMT
Re:DBCheckBox Questions?No to both questions. -- |
Wayne Niddery [TeamB
![]() Delphi Developer |
Tue, 06 Jan 2004 10:03:59 GMT
Re:DBCheckBox Questions?Quote"Joaquim Macedo" <joaquimmac...@yahoo.com> wrote in message Quote
If the field is null, set the text to 'True', else 'False' (or anything else you want as long as you match it in the DBCheckbox.ValueChecked / ValueUnchecked properties). A sample using DBDEMOS Clients.dbf Risk_Level field: procedure TForm1.Table1RISK_LEVELGetText(Sender: TField; var Text: String; -- |
Joaquim Maced
![]() Delphi Developer |
Wed, 07 Jan 2004 00:24:52 GMT
Re:DBCheckBox Questions?Thanks Bill and Wayne, for answering. Wayne, The DBCheckBox properties are: When it returns 'Y', the DBCheckBox is Checked, else the I don't know if this is important - the data type field is TSmallInt. Best regards, "Wayne Niddery [TeamB]" <wnidd...@aci.on.ca> wrote: Quote>"Joaquim Macedo" <joaquimmac...@yahoo.com> wrote in message |
Wayne Niddery [TeamB
![]() Delphi Developer |
Wed, 07 Jan 2004 10:28:58 GMT
Re:DBCheckBox Questions?Quote"Joaquim Macedo" <joaquimmac...@yahoo.com> wrote in message Quote
before I posted it. Is there any other code in the OnGetText even that could be bypassing the code you post above? The field type should be irrelevant as long as you are testing it appropriately. Try using 'T' and 'F' ijnstead of 'Y' and 'N'. -- |
Joaquim Maced
![]() Delphi Developer |
Fri, 09 Jan 2004 23:24:23 GMT
Re:DBCheckBox Questions?Wayne, Thanks again for your reply. It seems to me that if the field's value is Null, then the event Best regards, "Wayne Niddery [TeamB]" <wnidd...@aci.on.ca> wrote: Quote>"Joaquim Macedo" <joaquimmac...@yahoo.com> wrote in message |