Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
Can I store the value of a checkbox in a dataset / DB and tie it to DBNavigator
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
IRC channel
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Polished version of the C...
by
glorfin
[
Today
at 05:47:37 pm]
Purchasing Lazarus
by
Paolo
[
Today
at 05:44:11 pm]
Lazarus Release 2.0.12
by
Olivia232425
[
Today
at 05:32:08 pm]
case of
by
flori
[
Today
at 05:00:38 pm]
WinAPI | EnumChildWindows...
by
440bx
[
Today
at 04:52:18 pm]
Raspbian: running a progr...
by
MarkMLl
[
Today
at 04:50:12 pm]
TStringList functionality...
by
sporex
[
Today
at 04:47:21 pm]
Raspberry Pi Pico and Fre...
by
MiR
[
Today
at 04:37:00 pm]
What is the difference be...
by
ASBzone
[
Today
at 04:34:20 pm]
Apple Silicon / M1 : Nati...
by
MrMaxMusterman
[
Today
at 04:33:31 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Can I store the value of a checkbox in a dataset / DB and tie it to DBNavigator (Read 546 times)
CrazyRam
New Member
Posts: 13
Can I store the value of a checkbox in a dataset / DB and tie it to DBNavigator
«
on:
July 17, 2019, 02:55:31 pm »
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.
Logged
CrazyRam
New Member
Posts: 13
Re: Can I store the value of a checkbox in a dataset / DB and tie it to DBNavigator
«
Reply #1 on:
July 17, 2019, 04:00:13 pm »
Ah, there is a DBCheckBox. Just need to create a new column in the DB and save its state.
Logged
madref
Hero Member
Posts: 831
..... A day not Laughed is a day wasted !!
Re: Can I store the value of a checkbox in a dataset / DB and tie it to DBNavigator
«
Reply #2 on:
July 19, 2019, 05:40:35 am »
But store it as a 0 or a 1 and not as a true or false.
This makes your database a bit more flexible
Logged
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.6 / FPC 3.0.4
Lazarus Trunc / FPC Trunc
Mac OS X Mojave
CrazyRam
New Member
Posts: 13
Re: Can I store the value of a checkbox in a dataset / DB and tie it to DBNavigator
«
Reply #3 on:
July 22, 2019, 01:26:03 pm »
Thanks madref.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
Can I store the value of a checkbox in a dataset / DB and tie it to DBNavigator
TinyPortal
© 2005-2018