Subject | RE: [IBO] DrawCell method query |
---|---|
Author | Alan McDonald |
Post date | 2003-02-04T09:47:12Z |
OK - Yes - it's a buffer issue..
If I open this Query1 when the application starts up rather than as I was
doing, just before the panel on which the grid is set to visible for the
first time.. there is no error.
What could be causing this?
Alan
-----Original Message-----
From: Alan McDonald [mailto:alan@...]
Sent: Tuesday, 4 February 2003 8:38 PM
To: IBObjects@yahoogroups.com
Subject: RE: [IBO] DrawCell method query
It's coming up with a 'FieldName myboolfield not found' exception
when I use the
and a general AV when I use
now after adding more queries and DrawCell calls.
The field definitely exists, and when i step thru the debugger, slowly,
these errors do not show up. It appears as if there is a buffer not being
ready to query like this. There must be another more reliable way to get at
the values.
Alan
-----Original Message-----
From: Lester Caine [mailto:lester@...]
Sent: Tuesday, 4 February 2003 8:14 PM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] DrawCell method query
true/false not a character?
So
if (BufferFieldByName('myboolfield').AsBoolean) then
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
___________________________________________________________________________
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/
___________________________________________________________________________
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/
If I open this Query1 when the application starts up rather than as I was
doing, just before the panel on which the grid is set to visible for the
first time.. there is no error.
What could be causing this?
Alan
-----Original Message-----
From: Alan McDonald [mailto:alan@...]
Sent: Tuesday, 4 February 2003 8:38 PM
To: IBObjects@yahoogroups.com
Subject: RE: [IBO] DrawCell method query
It's coming up with a 'FieldName myboolfield not found' exception
when I use the
> if (IB_Query1.BufferFieldByName('myboolfield').AsBoolean='Y') thenline
and a general AV when I use
> if (IB_Query1.BufferFields[4].AsString='Y') thenNow this did not happen when I first created the code, it is only happening
now after adding more queries and DrawCell calls.
The field definitely exists, and when i step thru the debugger, slowly,
these errors do not show up. It appears as if there is a buffer not being
ready to query like this. There must be another more reliable way to get at
the values.
Alan
-----Original Message-----
From: Lester Caine [mailto:lester@...]
Sent: Tuesday, 4 February 2003 8:14 PM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] DrawCell method query
> no my fields are all populated - they are not null boolean Y/N fieldsThis is Delphi stuff isn't it - AsBoolean will return
> I have since found that
> if (IB_Query1.BufferFields[4].AsString='Y') then
> works where
> if (IB_Query1.BufferFieldByName('myboolfield').AsBoolean='Y') then
> does not
true/false not a character?
So
if (BufferFieldByName('myboolfield').AsBoolean) then
> Not sure why... any clues?GetCellProps
> secondly
> what is the difference between using the DrawCell event and the
> event for doing this task?Historic compatibility ( I think <g> )
> Why is there a DrawCell and DrawFocusedCell when you can test for focused
> state in the DrawCell event anyway?
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
___________________________________________________________________________
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/
___________________________________________________________________________
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/