Subject Re: [IBO] Re: TIBOBCDFields and TIBOFloatFields
Author Jason Wharton
If you have a domain for your numeric columns setup then you can turn off
BCD for all of your columns by setting two properties.

First one is you need to tell the connection that Domain names are in the
ColumnAttributes property. This is called FieldEntryTypes and you need to
include the option for domain names. Then, in the ColumnAttributes property
make an entry like this:

MYDOMAIN=NOBCD;

If you have persistent fields already defined then you will need to redo
them after making these adjustments to wash out the BCD fields.

HTH,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: <dcalford@...>
To: <IBObjects@yahoogroups.com>
Sent: Tuesday, May 08, 2001 9:29 PM
Subject: [IBO] Re: TIBOBCDFields and TIBOFloatFields


> Hi Jason,
>
> Sorry to keep bothering you.
>
> What exactly is the syntax in the columnattributes to turn off bcd
> for a specific domain?
> Is there a newer reference for this?
>
> best regards
>
> Dalton
>
> --- In IBObjects@y..., "Jason Wharton" <jwharton@i...> wrote:
> > You can add in the TIB_Connection (or TIBODatabase)
> ColumnAttributes
> > property the NOBCD attribute which will cause it to use the float
> field
> > instead of the BCD field.
> >
> > Also, feel free to go into the source and look for 'NOBCD' in the
> IBODataset
> > (IBDataset) unit and change the code to avoid using BCD all
> together.
> >
> > Why are BCD columns so awful to deal with?
> > Why are they so hard to get working?
> > Seems there is still a bug in them when accessing their value as a
> float.
> > Were you getting an "out of range" error by chance?
> >
> > HTH,
> > Jason Wharton
> > CPS - Mesa AZ
> > http://www.ibobjects.com
> >
> >
> > ----- Original Message -----
> > From: <dcalford@d...>
> > To: <IBObjects@y...>
> > Sent: Tuesday, May 08, 2001 8:52 PM
> > Subject: [IBO] TIBOBCDFields and TIBOFloatFields
> >
> >
> > > Hi,
> > >
> > > I have a field that is being identified as a bcd field but I
> want it
> > > to be dealt with as a float.
> > >
> > > I am using a TIBOTable and adding the fields.
> > > When I redefine the type in the class definition the compiler
> > > complains that it should be bcd....
> > >
> > > Any suggestions?
> > >
> > > best regards
> > >
> > > Dalton
> > >
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>