On Thu, 14 Jul 2005, L505 wrote:
> > > | I always do something like this: > | > | {$ifdef UNIX} > | const dirsep = '/'; > | {$else} > | const dirsep = '\'; > | {$endif} > | > | path := ExtractFileDir(paramstr(0) + dirsep + 'somepath' + dirsep + > | 'directory' + 'etc' + dirsep); > | > | Id imagine that one of fpc's units already has something very similar to > | this. > > That's a good tip.. Yeah, so if anyone knows.. is there something like this > already in a unit somewhere that should be used as a standard directory > separator variable? PathDelim (in sysutils, delphi compatible) or DirectorySeparator (FPC native, defined in system) Michael. > > > > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal