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
LAMW: jMsSqlJDBCConnectio...
by
af0815
[
Today
at 09:14:34 pm]
fphttpclient
by
berghem
[
Today
at 09:14:28 pm]
Error ExportPDF
by
berghem
[
Today
at 09:09:44 pm]
Raspbian: running a progr...
by
MarkMLl
[
Today
at 08:52:54 pm]
Help with task using arra...
by
Stycx
[
Today
at 08:50:25 pm]
Lazarus Release 2.0.12
by
Martin_fr
[
Today
at 08:40:59 pm]
How to color boolean valu...
by
Martin_fr
[
Today
at 08:23:00 pm]
Polished version of the C...
by
glorfin
[
Today
at 08:18:06 pm]
More componenets.
by
440bx
[
Today
at 08:17:38 pm]
Connect to a MS-SQL Serve...
by
af0815
[
Today
at 08:09:40 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 542 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