Subject | TField.AsBoolean |
---|---|
Author | jacobhavkrog |
Post date | 2010-08-03T09:20:48Z |
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
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