Subject | RE: [IB-Architect] Re: IB 6.1 Whish: boolean field |
---|---|
Author | ENSELME Béranger |
Post date | 2000-08-03T15:01Z |
> >> I wonder how the community feels abou implementing aI guess the problem with a boolean type is that it's not SQL-compliant (but
> boolean field type
> into
> >> interbase ?
I might be wrong)
> >What's wrong with the domain?Yes, you can ! You have to create it manually using the fields editor and
> >
> >create domain boolean as smallint default 0 not null check(value in
> >(0,1))
> >
> >or
> >
> >create domain boolean as char(1) default 'F' not null check(value in
> >('F','T'))
>
>
> I know, but on the delphi side you cannot use a
> TBooleanField, but get a
> TSmallIntergerField, and thats needs some coding to work.
> (You cannot use a
> TDBCheckbox for example)
set the DisplayValues property, but it works.
Bérenger Enselme