Subject | [IBO] TIBO StackOverflow Error on TField->OnChange event () |
---|---|
Author | Enrico Raviglione |
Post date | 2002-03-09T18:05:40Z |
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 fired
all work fine.
If the master table (A) are in dsBrowse state, before write my (A)->Field i
must put the (A)Table in Edit mode but when i do this another
(B)->Field->OnChange event are fired and a loop start and finish only with a
StackOverflow error.
Best regards,
Enrico Raviglione.
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 fired
all work fine.
If the master table (A) are in dsBrowse state, before write my (A)->Field i
must put the (A)Table in Edit mode but when i do this another
(B)->Field->OnChange event are fired and a loop start and finish only with a
StackOverflow error.
Best regards,
Enrico Raviglione.