Recent

Author Topic: Can I store the value of a checkbox in a dataset / DB and tie it to DBNavigator  (Read 805 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: 949
  • ..... A day not Laughed is a day wasted !!
    • 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 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

CrazyRam

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

 

TinyPortal © 2005-2018