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
Enabling/disabling treevi...
by
wp
[
Today
at 10:34:12 pm]
Reading text file data in...
by
Bart
[
Today
at 10:27:26 pm]
Brook - Beginner trying t...
by
RedOctober
[
Today
at 09:56:53 pm]
Solved: Thread with CLI
by
ojz0r
[
Today
at 08:54:29 pm]
Code in If statement not ...
by
CarmichaelJohn
[
Today
at 08:50:15 pm]
Update individual row in ...
by
paweld
[
Today
at 08:45:39 pm]
TList<string> VS. TString...
by
JuhaManninen
[
Today
at 08:35:11 pm]
Online Package Manager
by
GetMem
[
Today
at 08:31:55 pm]
[Solved] 32 Bit vs 64 Bit...
by
Peter H
[
Today
at 08:06:18 pm]
Unlocking a Sqlite3 db-fi...
by
JanRoza
[
Today
at 07:38:43 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 524 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: 830
..... 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