Subject | R: [IBO] TIBO StackOverflow Error on TField->OnChange event () |
---|---|
Author | Enrico Raviglione |
Post date | 2002-03-11T10:15:29Z |
Hi,
thanks i also have solved it with some trick, but i think this is a bug in
TIBO* object if the standard VCL TTable/TQuery don't have the same behavour.
Regards,
Enrico Raviglione.
-----Messaggio originale-----
Da: hans@... [mailto:hans@...]
Inviato: sabato 9 marzo 2002 19.06
A: IBObjects@yahoogroups.com
Oggetto: Re: [IBO] TIBO StackOverflow Error on TField->OnChange event ()
Ran into something simular couple of days ago.
Solved it with a global variable serving as a OnChangeBusy flag
like:
if not OnChangeBusy and (State in dsWriteModes) then
begin
OnChangeBusy := True;
your stuff
OnChangeBusy := False;
end;
======================
Enrico Raviglione wrote:
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/
thanks i also have solved it with some trick, but i think this is a bug in
TIBO* object if the standard VCL TTable/TQuery don't have the same behavour.
Regards,
Enrico Raviglione.
-----Messaggio originale-----
Da: hans@... [mailto:hans@...]
Inviato: sabato 9 marzo 2002 19.06
A: IBObjects@yahoogroups.com
Oggetto: Re: [IBO] TIBO StackOverflow Error on TField->OnChange event ()
Ran into something simular couple of days ago.
Solved it with a global variable serving as a OnChangeBusy flag
like:
if not OnChangeBusy and (State in dsWriteModes) then
begin
OnChangeBusy := True;
your stuff
OnChangeBusy := False;
end;
======================
Enrico Raviglione wrote:
>fired
> Hi,
> i have found a problem on the TField->OnChange event procedure.
> I have a Master TIBOTable (A), and 2 Detail TIBOTable (B) and (C).
>
> In table (B) i have defined an OnChange event-function on a field.
>
> In this event-function i check some fields value in Table (B) and (C) and
> when necessary i must write another field on Master table(A).
>
> If the master table (A) are in Edit mode before the OnChange event are
> all work fine.i
>
> If the master table (A) are in dsBrowse state, before write my (A)->Field
> must put the (A)Table in Edit mode but when i do this anothera
> (B)->Field->OnChange event are fired and a loop start and finish only with
> StackOverflow error.___________________________________________________________________________
>
> Best regards,
> Enrico Raviglione.
>
>
>
> IB Objects - direct, complete, custom connectivity to Firebird orInterBase
> without the need for BDE, ODBC or any other layer.___________________________________________________________________________
>
> http://www.ibobjects.com - your IBO community resource for Tech Infopapers,
> 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/