Subject: FAQPAS4.TXT contents Copyright (c) 1993-1996 by Timo Salmi All rights reserved FAQPAS4.TXT The fourth set of frequently (and not so frequently) asked Turbo Pascal questions with Timo's answers. The items are in no particular order. You are free to quote brief passages from this file provided you clearly indicate the source with a proper acknowledgment. Comments and corrections are solicited. But if you wish to have individual Turbo Pascal consultation, please post your questions to a suitable Usenet newsgroup like news:comp.lang.pascal.borland. It is much more efficient than asking me by email. I'd like to help, but I am very pressed for time. I prefer to pick the questions I answer from the Usenet news. Thus I can answer publicly at one go if I happen to have an answer. Besides, newsgroups have a number of readers who might know a better or an alternative answer. Don't be discouraged, though, if you get a reply like this from me. I am always glad to hear from fellow Turbo Pascal users. .................................................................... Prof. Timo Salmi Co-moderator of news:comp.archives.msdos.announce Moderating at ftp:// & http://garbo.uwasa.fi archives 193.166.120.5 Department of Accounting and Business Finance ; University of Vaasa ts@uwasa.fi http://uwasa.fi/~ts BBS 961-3170972; FIN-65101, Finland -------------------------------------------------------------------- 76) What are the current Pascal newsgroups on the Usenet news? 77) How do I detect the CapsLock status, how do I turn it on/off? 78) How do I detect if the F11 or F12 key has been pressed? 79) How do I extract (parse) substrings from an input string? 80) How do I find out the size of any kind of a file? 81) How do I format graphics output like in textmode writeln? 82) How do I detect if more than one standard key is pressed down? 83) How can I read a disk's Volume Serial Number? 84) How can I disable and then enable the keyboard in my TP program? 85) How do I get the character device name of the (first) CD-ROM? 86) How do I eject a CD-ROM using a Turbo Pascal program? 87) How do I find out if the ANSI.SYS driver has been loaded? 88) Where do I find Turbo Pascal tutorials and/or good textbooks? 89) How do I make an executable of my Turbo Pascal source program? 90) How can I quickly read the last byte of a file? 91) Is 2000 a leap year? What is the leap year algorithm? 92) Does anybody have a program that gives the week number? 93) How can I use OutText to write numbers in the graphics mode? --------------------------------------------------------------------