The BooleanTrue and BooleanFalse properties are the string values used to determine whether a boolean field is true or false. For instance, in some cases your database might use "Yes/No" to define a boolean field so you would need to change these values to determine whether the checkbox is checked or not.
I can see in some database like MySQL stores boolean as string like 'TRUE'/'FLASE', so I need to set BooleanTrue to 'TRUE' and BooleanFalse to 'FALSE'.
What value should I set these if the boolean field os database is 'Boolean' like Paradox or MS Access ?
Sorry, bad information in my last post. The purpose of the BooleanTrue and BooleanFalse properties is so you can assign the DBCheckBox component to a non-boolean field. For instance if you wanted to assign it to an Integer field where "20" was True and "30" was false, these properties would be useful. By default Delphi converts all dtBoolean fields to return "True" and "False" not depending on the database. If you leave these fields as their defaults, the DBCheckBox component should work correctly no matter what database you are connecting to.
Comments
The BooleanTrue and BooleanFalse properties are the string values used to
determine whether a boolean field is true or false. For instance, in some
cases your database might use "Yes/No" to define a boolean field so you
would need to change these values to determine whether the checkbox is
checked or not.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
'TRUE'/'FLASE', so I need to set BooleanTrue to 'TRUE' and BooleanFalse to
'FALSE'.
What value should I set these if the boolean field os database is 'Boolean'
like Paradox or MS Access ?
Sorry, bad information in my last post. The purpose of the BooleanTrue and
BooleanFalse properties is so you can assign the DBCheckBox component to a
non-boolean field. For instance if you wanted to assign it to an Integer
field where "20" was True and "30" was false, these properties would be
useful. By default Delphi converts all dtBoolean fields to return "True"
and "False" not depending on the database. If you leave these fields as
their defaults, the DBCheckBox component should work correctly no matter
what database you are connecting to.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com