Subject: FAQPAS.TXT contents Copyright (c) 1993-1996 by Timo Salmi All rights reserved FAQPAS.TXT 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. If you are an experienced Turbo Pascal programmer with Turbo Pascal material you would like to circulate publicly world-wide, you are welcome to submit your material to the Garbo MS-DOS archives at the University of Vaasa. To do that you *FIRST* must *CAREFULLY* read the uploading instructions and the formal requirements in the file ftp://garbo.uwasa.fi/pc/UPLOAD.INF. You are also welcome to contact me by email for these instructions if you are not familiar with downloading them from the Garbo archives. .................................................................... 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 -------------------------------------------------------------------- 1) How do I disable or capture the break key in Turbo Pascal? 2) How do I get a printed documentation of my students' TP runs? 3) What is the code for the weekday of a given date? 4) Need a program to format Turbo Pascal source code consistently 5) Can someone give me advice for writing a tsr program? 6) Why can't I read / write the com ports? 7) What are interrupts and how to use them in Turbo Pascal? 8) Should I upgrade my Turbo Pascal version? 9) How do I execute an MS-DOS command from within a TP program? 10) How is millisecond timing done? 11) How can I customize the text characters to my own liking? 12) How to find the files in a directory and subdirectories? 13) I need a power function but there is none in Turbo Pascal. 14) How can I create arrays that are larger than 64 kilobytes? 15) How can I test that the printer is ready? 16) How can I clear the keyboard type-ahead buffer? 17) How can I utilize expanded memory (EMS) in my programs? 18) How can I obtain the entire command line? 19) How do I redirect text from printer to file in my TP program? 20) Turbo Pascal is for wimps. Use standard Pascal or C instead? 21) How do I turn the cursor off? 22) How to find all roots of a polynomial? 23) What is all this talk about "Pascal homework on the net"? 24) How can I link graphics drivers directly into my executable? 25) How can I trap a runtime error? -------------------------------------------------------------------- Unless otherwise stated the answers cover versions 4.0, 5.0, 5.5, 6.0 and 7.0 (real mode). The Q&As are not for Turbo Pascal version 3 or earlier. Objects, TVision, Windows, Delphi, etc are not covered. (I do not use them myself.) --------------------------------------------------------------------