Subject Re: [IBO] Re: TIBOBCDFields and TIBOFloatFields
Author Jason Wharton
Yes sir I do have such a one liner now that you have domain entry types
activated in the connection.

There is a ColumnAttribute called BOOLEAN and it has parameters which allow
you to tell which values are used for True and False.

MYBOOLDOMAIN=BOOLEAN=T,F;

If I'm not mistaken, for Char( 1 ) it will default to T and F so you could
just do this:

MYBOOLDOMAIN=BOOLEAN;

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


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


> Hi Jason
>
> The standard components and greplace are not so bad, but the
> origional database was based on clipper, then converted into BDE
> with dbase as the backend, and I get the joy of moving it into IB.
>
> The guy who did the bde work was very good at using every obscure
> and peculiar bug/feature of the bde to get it to do things it was
> never intended to be used for.
>
> Right now I am looking at how to use boolean fields.
> I have a domain that is a char(1) that I want IB to use as a boolean.
>
> Do you have a quick one liner how to, that I can use so that IB will
> define it as a boolean and handle the T/F correctly?
>
> best regards
>
> Dalton
>
>
> --- In IBObjects@y..., "Jason Wharton" <jwharton@i...> wrote:
> > Dalton,
> >
> > > I am converting alot of old code, some dating back to Delphi 1
> and I
> > > am using your compatibility components for the first time.
> >
> > Cool. Hope you are finding it easy to convert. Did you take some
> time to go
> > through the BDE to IBO Conversion Guide in the IBO.HLP file's How
> To
> > sections? How did you find it helpful or not so helpful?
> >
> > > The biggest problem I have been having is invalid casting of data
> > > types in the code.
> >
> > Wouldn't GReplace be able to identify these places too?
> >
> > > Thanks again, you have been extremely helpful.
> >
> > That's what I'm here for!
> >
> > Regards,
> > Jason Wharton
> > CPS - Mesa AZ
> > http://www.ibobjects.com
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>