home *** CD-ROM | disk | FTP | other *** search
- {$B-,D-,F-,I+,N-,R-,S+,V+}
-
- (*
- Timo Salmi UNiT H
- A Turbo Pascal 5.0 unit of more miscellania
- All rights reserved 24-Feb-90
- Updated 15-Apr-90
-
- This unit may be used and distributed freely for PRIVATE, NON-COMMERCIAL,
- NON-INSTITUTIONAL purposes, provided it is not changed in any way. For
- ANY other usage, contact the author.
-
- The units are under development. Comments and contacts are solicited. If
- you have any questions, please do not hesitate to use electronic mail for
- communication.
- InterNet address: ts@chyde.uwasa.fi (preferred)
- Funet address: GADO::SALMI
- Bitnet address: SALMI@FINFUN
- FidoNet address: 2:515/1 (Micro Maniacs Opus, To: Timo Salmi)
-
- The author shall not be liable to the user for any direct, indirect or
- consequential loss arising from the use of, or inability to use, any unit,
- program or file howsoever caused. No warranty is given that the units and
- programs will work under all circumstances.
-
- Timo Salmi
- Professor of Accounting and Business Finance
- School of Business Studies, University of Vaasa
- P.O. BOX 297, SF-65101 Vaasa, Finland
- *)
-
- unit TSUNTH;
-
- (* ======================================================================= *)
- interface
- (* ======================================================================= *)
-
- uses Dos;
-
- (* Graftabl MsDos command loads the extended character set to be used in
- the graphics mode. This function tells whether the table has been
- already loaded, or not *)
- function GRTABLFN : boolean;
-
- (* This function returns whether a name is a directory or not *)
- function ISDIRFN (name : string) : boolean;
-
- (* Copy a file (of any type)
- Status codes:
- 0 : ok
- 1 : FromFile does not exits
- 2 : ToFile already exists
- 3 : ToFile cannot be opened for writing (read-only,
- write protected, invalid device)
- 4 : Error in writing to ToFile
- 5 : Copy error (disk probably full)
- 6 : Date stamp error
- 7 : Out of memory
- *)
- procedure COPYFILE (FromFile, ToFile : string; var status : byte);
-
- (* This function returns whether a text file is open or closed.
- ----
- Naturally the FilePointer must have been assigned at an earlier stage.
- Very convenient as a test in routines which close a file.
- e.g. use: if OPENEDFN(f) then close(f); *)
- function OPENEDFN (var FilePointer : text) : boolean;
-