Difference between revisions of "TOpSys"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> TOpSys = (osUnknown, osWin95, osWin98, osWin98SE, osWinNT, osWinME, osWin2000, osWinXP, osWinVista, osWin7); </source> ==Ava...") |
|||
| Line 10: | Line 10: | ||
==Description== | ==Description== | ||
An enumeration type which defines a list of operating systems. | An enumeration type which defines a list of operating systems. | ||
| + | |||
| + | ==Example== | ||
| + | <source lang="scar"> | ||
| + | begin | ||
| + | if OperatingSystem = osWin7 then | ||
| + | WriteLn('You are running Windows 7') | ||
| + | else | ||
| + | WriteLn('You are not running Windows 7'); | ||
| + | end. | ||
| + | </source> | ||
==See Also== | ==See Also== | ||
Latest revision as of 16:26, 3 July 2011
Definition
TOpSys = (osUnknown, osWin95, osWin98, osWin98SE, osWinNT, osWinME, osWin2000, osWinXP, osWinVista, osWin7);
Availability
SCAR Divi 3.25 > Current
Description
An enumeration type which defines a list of operating systems.
Example
begin
if OperatingSystem = osWin7 then
WriteLn('You are running Windows 7')
else
WriteLn('You are not running Windows 7');
end.