home *** CD-ROM | disk | FTP | other *** search
-
- /** $VER: GetPathPart 1.0 (23.10.94)
- **
- ** Extracts the path name from a full file specification.
- ** So long as that spec is valid, this should not fail.
- **
- ** Written by Kenneth Yarnall. This code may be freely distributed.
- **/
-
- GetPathPart:
-
- Parse ARG path
-
- dirend = LastPos('/', path)
- if dirend = 0 then
- dirend = Pos(':',path)
- if dirend ~= 0 then
- path = Left(path,dirend)
-
- Return path
-