Firebird Simulated Boolean Fields
Posted: Tue 03 Jul 2007 04:20
Hello Support
I have a domain defined in a Firebird DB to simulate BOOLEAN fields. The definition is
I would like to access fields that use this domain throught IBDAC and BDS2006 Delphi as
Currently I use
I have read the IBDAC help files, PDFs and forum but can't find any documents relating to the treatment of simulated boolean fields.
Please can you advise how to reference a simulated boolean field as a boolean or point me to the relevant documentation?
regards and thanks
SeaCay
I have a domain defined in a Firebird DB to simulate BOOLEAN fields. The definition is
Code: Select all
CREATE DOMAIN D_BOOLEAN AS
SMALLINT
DEFAULT 0
CHECK ((VALUE IN (0, 1)))
Code: Select all
somestate := .fieldByName('ABooleanField').asBoolean;
Code: Select all
someState := .fieldByName('ABooleanField').asInteger = 1);
Please can you advise how to reference a simulated boolean field as a boolean or point me to the relevant documentation?
regards and thanks
SeaCay