SetTimeout

From SCAR Divi Manual
Revision as of 20:16, 8 September 2011 by Freddy (talk | contribs) (Description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function SetTimeout(ms: Integer; ProcName: AnsiString): Integer;

Availability

SCAR Divi 3.00 > Current

Description

Adds a timeout to the timeout system which will call the function specified by it's name in ProcName after a given (minimum) amount of milliseconds specified by ms. The function returns the index associated with the timeout.

Example

procedure Timeout;
begin
  WriteLn('Timeout');
end;

begin
  SetTimeout(1000, 'Timeout');
  Wait(3000);
end.

Output:

Timeout

See Also