Difference between revisions of "SetTimeout"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function SetTimeout(ms: Integer; ProcName: AnsiString): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Descrip...") |
(→Description) |
||
| Line 8: | Line 8: | ||
==Description== | ==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'''. | + | 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== | ==Example== | ||
Latest revision as of 19:16, 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. 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