SetTimeout

From SCAR Divi Manual
Revision as of 19:13, 8 September 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function SetTimeout(ms: Integer; ProcName: AnsiString): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Descrip...")
(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.

Example

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

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

Output:

Timeout

See Also