|
<< Click to Display Table of Contents >> Delphi Examples: DbiCheckRefresh |
![]() ![]()
|
Refresh all sessions within the application, if needed. This is a good function to place in a TTimer to refresh data. This example uses the following input:
fDbiCheckRefresh;
The procedure is defined as:
procedure fDbiCheckRefresh;
var
OldSession: TSession;
B: Byte;
begin
OldSession := Sessions.CurrentSession;
for B := 0 to (Sessions.Count – 1) do begin
Sessions.CurrentSession := Sessions.Sessions[B];
Check(DbiCheckRefresh);
end;
Sessions.CurrentSession := OldSession;
end;