Subject | RE: [IBO] File entered edit state but did not retain field value?? |
---|---|
Author | John Tomaselli |
Post date | 2002-01-02T19:05:04Z |
Did you try .astring:='F' ?
John
-----Original Message-----
From: Jason Wharton [mailto:jwharton@...]
Sent: Wednesday, January 02, 2002 1:46 PM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] File entered edit state but did not retain field value??
This is a bug I need to resolve.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
John
-----Original Message-----
From: Jason Wharton [mailto:jwharton@...]
Sent: Wednesday, January 02, 2002 1:46 PM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] File entered edit state but did not retain field value??
This is a bug I need to resolve.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
----- Original Message -----
From: "Michael L. Horne" <guardian@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, January 02, 2002 4:28 AM
Subject: [IBO] File entered edit state but did not retain field value??
> Hello,
>
> I came across this while searching for a different bug.
>
> It seems that if you have the following commands:
>
> ib_query1.Post;
> ib_query1.FieldByName('BooleanTest').AsBoolean := False;
> ib_query1.post;
>
> This will actually not affect the value in the field at all!
>
> The processing of the second line (setting the boolean value)
> will put the query into dssEdit state, but the value "False"
> will not be placed into the field.
>
> Maybe this is how it should work, but it took me a couple
> of errors to narrow the problem down to this set of commands,
> you see only one field of the ones being set was wrong.
> (the first one). Also, instead of a "Post" I had a
> "commitretaining".
>
> So Jason, is this a bug, or the way it should work, I would
> think it should work differently. Possible options:
> 1. Goes into edit state and keeps the value.
> 2. Error message saying that the query is not in edit state.
>
> Thanks
> Michael L. Horne
>
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/