Subj : TP Code To : Sean Dennis From : Roelof Beverdam Date : Tue Apr 23 2002 12:19 am Hello Sean, > Could someone give me a good example on how to translate this line from > Virtual Pascal: > > FilePath := ExtractFilePath(ParamStr(0)); > > ...into something that will work with Turbo Pascal 7? I would suggest adding a function like: FUNCTION ExtractFilePath(FilePath: PathStr): PathStr; VAR Path: PathStr; FileName: FileStr; Ext: ExtStr; BEGIN FSplit(FilePath, Path, FileName, Ext); ExtractFilePath := Path END; This is a skeleton solution; for the details see the online help. I currently don't have the compiler at hand, so I could not test it. Success! Cheers, Roelof Beverdam --- Dutchie V3.10.11 * Origin: The Beaver's Nest (2:280/5218) .