I've a question about unidac's uniQuery
:
when uniQuery
open, if a DataSource
component is linked, the DataSource.onDataChange
will trigger 2 times, and ADOQuery
trigger just 1 time, why?
Environment:
- uniDAC:6.4, 7;
- delphi: 7, xe 10.1 berlin
I faced the same problem many times, I found that it is a default loading behavior not just in the Uni-component, all similar database components will trigger
.onDataChange
twice or more when loading, the only way to go over it is by using workarounds to ignore the 1st trigger.You can find also a similar problem here
If triggering twice is annoying you, try my workaround for it:
It will eliminate all none necessary triggers,
hope that helps.