Recent

Author Topic: Can I store the value of a checkbox in a dataset / DB and tie it to DBNavigator  (Read 303 times)

CrazyRam

  • New Member
  • *
  • Posts: 13
Hi,

I have a CheckBox on my form, when checked I'd like to store its value in my DB / dataset (zmSQL) via the DBNaqvigator Post event. Is it possible?

Rgds
Ram.

CrazyRam

  • New Member
  • *
  • Posts: 13
Ah, there is a DBCheckBox. Just need to create a new column in the DB and save its state.


madref

  • Hero Member
  • *****
  • Posts: 688
  • ..... A day not Laughed is a day not Lived !!
    • Nursing With Humour
But store it as a 0 or a 1 and not as a true or false.
This makes your database a bit more flexible
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 2.0.2 / FPC 3.0.4
Lazarus Trunc / FPC 3.0.4
Mac OS X Mojave

CrazyRam

  • New Member
  • *
  • Posts: 13
Thanks madref.