home *** CD-ROM | disk | FTP | other *** search
- function CHECKEY: boolean;
- { Return TRUE if the 'A' key has been pressed, or FALSE otherwise }
- var c: char;
-
- begin
- c := ' ';
- if (keypressed) then begin
- c := readkey; (*read (kbd, c);*) (**)
- if (upcase (c) = 'A') then
- Checkey := TRUE
- else
- Checkey := FALSE;
- end else
- Checkey := FALSE;
- end; { function CHECKEY }