It is possible in WAScript to write scripts with language which based on Object Pascal, closest to the Delphi, - DWScript. To learn more information on DWScript click the link.
To script were recognized by software , as the one that uses Pascal as a programming language, it is necessary to write first string of tne script as follows:
//{$MODE PASCAL}
If there is no apecified mark for language , then syntax of Pascal will be used by default.
The methods, enums, types and records built in WAScript Pascal to operate the system: