Subject | Re: [firebird-support] boolean fields |
---|---|
Author | Robert martin |
Post date | 2004-11-09T02:53:28Z |
We have converted our Booleans to T or F char fields. This works great with
all the standard Delphi components we use, even our .AsBoolean code works
perfectly. You should be able to do your 'if Data.Field then' code, I am
not sure because we prefer explicitly doing the comparison 'if
DataField.AsBoolean = True then'.
Rob Martin
Software Engineer
phone 03 377 0495
fax 03 377 0496
web www.chreos.com
Wild Software Ltd
all the standard Delphi components we use, even our .AsBoolean code works
perfectly. You should be able to do your 'if Data.Field then' code, I am
not sure because we prefer explicitly doing the comparison 'if
DataField.AsBoolean = True then'.
Rob Martin
Software Engineer
phone 03 377 0495
fax 03 377 0496
web www.chreos.com
Wild Software Ltd
----- Original Message -----
From: "Peter Sanders" <psanders@...>
To: <firebird-support@yahoogroups.com>
Sent: Tuesday, November 09, 2004 3:38 PM
Subject: [firebird-support] boolean fields
>
> Hi
>
> With the eventual release of FB2, will it be possible for it to support
> boolean fields "directly" i.e. not a numeric value per se, or is this
> specifically an SQL issue?
>
> When I use check boxes in my app it is easier and more "logical" to code
> "if data.field then..." than if Data.field = 1 or similar. It would also
> allow the use of more of the Delphi/third party components that recognise
> such boolean fields. They do not recognise the numeric field.
>
> --
> Kind regards
>
> Peter Sanders