Thread View: borland.public.kylix.database.interbaseexpress
1 messages
1 total messages
Started by Roberto Zanchi
Thu, 22 Jul 2004 08:01
Boolean problem
Author: Roberto Zanchi
Date: Thu, 22 Jul 2004 08:01
Date: Thu, 22 Jul 2004 08:01
22 lines
1509 bytes
1509 bytes
I need to using boolean delphi field for smallint interbase field; with a TIBBooleanField i can override TIBBooleanField.SetAsBoolean to set smallint value like: procedure TIBBooleanField.SetAsBoolean(Value: Boolean); var B: Smallint; begin if Value then SmallInt(B):= 1 else SmallInt(B):= 0; SetData(@B); end; Here is my problem: True boolean value is stored in interbase Database as -1 and False as 0. But I've a large Database where boolean are stored through domain with 1 and 0 values. How can I store boolean true value as 1 instead of -1? Help is very appreciated! Roberto Zanchi from Italy.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads