home *** CD-ROM | disk | FTP | other *** search
- (*========================================================*)
- (* MYWINDOS.PAS *)
- (* (c) 1993 G. Blumert & DMV-Verlag *)
- (*--------------------------------------------------------*)
- (* Compiler: Turbo-/Borland-Pascal für Windows *)
- (* Bildet die Funktion FSearch (Ergebnistyp STRING) nach *)
- (*========================================================*)
-
- UNIT MyWinDOS;
- {$X+}
- INTERFACE
-
- USES WinDos, Strings;
-
- TYPE
- PathStr = STRING[fsPathName];
-
- FUNCTION FSearch(FileName, DirList: PathStr): PathStr;
-
- IMPLEMENTATION
-
- FUNCTION FSearch(FileName, DirList: PathStr): PathStr;
- VAR
- FileStr, DirStr, ResStr: ARRAY[0..fsPathName] OF CHAR;
- BEGIN
- FSearch := StrPas(
- FileSearch(ResStr, StrPCopy(FileStr, FileName),
- StrPCopy(DirStr, DirList)))
- END;
-
- END.
-
- (*========================================================*)
- (* Ende von MYWINDOS.PAS *)
-