TDBCheckBox & ValueChecked with more than one value. lazarus / 16-Databases ---------------------------------------------------------------------- Jibal · 2011-04-29 13:01 Hi, When I set ValueChecked with '1;2' the DBCheckbox remain grayed when the corresponding field is either 1 or 2 When I set ValueChecked to '1', the DBCheckBox is ungrayed when the field is '1' (as it should) Is there a problem with multiples values in ValueChecked with Lazarus 0.9.31 (from the CodeTyphon installation) or did I miss something about the syntax of the ValueChecked string ? Best regards. [Edit] BTW, when I set the field in the database (SQLite3) to '1;2' then set ValueChecked to '1;2', the DBCheckBox is then ungrayed... ...Just like if the ValueChecked doesn't interpret the ';' as a separator but "1;2" as a whole value ! ---------------------------------------------------------------------- Lacak2 · 2011-05-02 12:43 Quote from: Jibal on April 29, 2011, 03:01:58 pm...Just like if the ValueChecked doesn't interpret the ';' as a separator but "1;2" as a whole value ! Yes it is as you wrote, see: http://docwiki.embarcadero.com/VCL/en/DBCtrls.TDBCheckBox.ValueChecked It seems, that it is bug or missing feature. LCL TDBCheckBox does not recognize multiple values separated by ";" See in bug tracker if ihere is already reported this bug, if not, then you can report it there as bug. ---------------------------------------------------------------------- Jibal · 2011-05-05 08:51 Thanks for your reply. That's what I thought as it was not mentionned anywhere. I took a look at the bug tracker and didn't manage to find this (the only bug related to such valuechecked beeing that it didn't accept numerical values - Resolved for now) so I will submit it. [Edit] Done... ---------------------------------------------------------------------- Lacak2 · 2011-05-06 05:26 FYI: http://bugs.freepascal.org/view.php?id=19291