The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



PathDiff


Unit: SDL_filesys
Class: none
Declaration: function PathDiff (Path1, Path2: string): string;

The function PathDiff returns the difference of the two pathes Path1 and Path2, provided that the shorter path is contained in the longer path. If this is not the case the function returns an empty string.

Example: The statement PathDiff ('h:\tab54\data\minitab\test.mtw', 'h:\tab54\data\'); returns the string 'minitab\test.mtw'.


Last Update: 2024-Feb-13