Difference between revisions of "SetTimeout"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function SetTimeout(ms: Integer; ProcName: AnsiString): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Descrip...")
(No difference)

Revision as of 19:13, 8 September 2011

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