Subject Re: [IBO] I can't toggle the status of a IB_CheckBox ...
Author Helen Borrie
At 03:38 PM 16/07/2003 +0000, you wrote:
>Hello,
>
>I declared the following :
>
> CREATE DOMAIN D_BOOL AS
> CHAR(1)
> DEFAULT 'F'
> CHECK (VALUE IN ('F','T'))
> COLLATE NONE; It work.
>
> I have a typicall
>
> IB.Connection ...
> IB.Transact ...
> IB_QUERY1 ...
> IB_DataSource
> + several IB_Edit controls
> (works perfect with all the other IB_Controls )
>
>All this work, and I can change and save values
>of any IB_Edit Control.
>
>A TIB_CheckBox is able to display is checked or not
>depending on the value of the field.
>
>
>The problem is that I can't change the status,
>I can't toggle between checked or not Checked
>for an TIB_CheckBox. No way ...
>
1. Go to the ColumnAttributes property of the IB_Connection and add this line:

D_BOOL=BOOLEAN=T,F
2. Go to the FieldEntryTypes property and make sure that fetDomainName is
included (it's a set property: you can have fetSQLType as well, if you want)

That's it. Now your D_BOOLs will behave like Booleans.

Helen