Subject Re: [IBO] TField.AsBoolean
Author robert.gilland
I USE BOOLEAN = CHAR(1) ( Y = TRUE, N = FALSE )

--- In IBObjects@yahoogroups.com, Dmitry Beloshistov <torin@...> wrote:
>
>
>
> Hello, Jacob!
>
>
>
> See TIB_Query.ColumnAttributes property and IBO help for details.
>
>
>
> For example you can use
>
> "YOUR_COLUMN=BOOLEAN=-1,0"
>
>
>
>
>
> WBR, Dmitry Beloshistov AKA [-=BDS=-]
>
>
>
>
>
>
>
> From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf Of jacobhavkrog
> Sent: Tuesday, August 03, 2010 12:21 PM
> To: IBObjects@yahoogroups.com
> Subject: [IBO] TField.AsBoolean
>
>
>
>
>
> Hi, I'm migrating from BDE Paradox to Firebird, and I'm using IBObjects to replace my TTable and TQuery BDE objects.
>
> How do I best handle booleans?
>
> I've read somewhere, that IBO support booleans represented as either 0/1, Y/N or T/F via the TFIeld.AsBoolean property.
>
> Why not 0 = False, -1 = True? My BDE -> FB datapump program represents booleans in this way (I don't know the rationale behind).
>
> If I change the datapump so that booleans are represented as eg Y/N, will TField.AsBoolean work as expected?
>
> Also, when is a IPIOBTable (the InfoPower TwwTable repleacement)?
>
> Thanks!
> Jacob
>
>
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 5335 (20100802) __________
>
>
>
> The message was checked by ESET NOD32 Antivirus.
>
>
>
> http://www.esetnod32.ru/.ml
>
>
>
> [Non-text portions of this message have been removed]
>