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