[Lazarus] CreateRelativePath document error.

Marco van de Voort marcov at stack.nl
Tue Feb 9 14:55:00 CET 2010


On Tue, Feb 09, 2010 at 03:41:38PM +0200, Paul van Helden wrote:
> > ExpandFileName does exactly that.
> >
> >
> No it doesn't, unless you're assuming your current directory as the base 
> path. ExtractRelativePath specifically takes a base path as a parameter. 
> Its inverse should do the same. In a GUI app (at least mine) I don't 
> care about my current directory.

Moreover, expandfilename afaik walks the filesystem, which is not always
good (e.g. whe you are laying out a new dir hierarchy)




More information about the Lazarus mailing list