222 |
|
FDelayTimerValue := AValue; |
223 |
|
{$IF FPC_FULLVERSION >= 30002} |
224 |
|
if (AValue > 0) and not IsMultiThread then |
225 |
< |
IBError(ibxMultiThreadRequired,['TIBTable MasterDetailDelay']); |
225 |
> |
IBError(ibxeMultiThreadRequired,['TIBTable MasterDetailDelay']); |
226 |
|
FTimer.Interval := FDelayTimerValue; |
227 |
|
{$IFEND} |
228 |
|
end; |
229 |
|
|
230 |
|
procedure TIBMasterDataLink.DoMasterChange; |
231 |
|
begin |
232 |
– |
if FDelayTimerValue = 0 then |
233 |
– |
inherited DoMasterChange |
232 |
|
{$IF FPC_FULLVERSION >= 30002} |
233 |
< |
else |
233 |
> |
if FDelayTimerValue > 0 then |
234 |
|
with FTimer do |
235 |
|
begin |
236 |
|
CheckSynchronize; {Ensure not waiting on Synchronize} |
242 |
|
else |
243 |
|
Enabled := true; |
244 |
|
end |
245 |
+ |
else |
246 |
|
{$IFEND} |
247 |
+ |
inherited DoMasterChange |
248 |
|
end; |
249 |
|
|
250 |
|
constructor TIBMasterDataLink.Create(ADataSet: TDataSet); |