Subject Re: [IBO] File entered edit state but did not retain field value??
Author Jason Wharton
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
>