Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

DBCheckBox

edited June 2004 in General
How to use the BooleanTrue and BooleanFalse ?

Comments

  • edited June 2004
    Hi Alan,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2004
    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 ?

  • edited June 2004
    Hi Alan,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2004
    I got it, thank you.

This discussion has been closed.