On Mon, 11 Sep 2006, Vincent Snijders wrote:
Michael Van Canneyt schreef:
On Mon, 11 Sep 2006, Graeme Geldenhuys wrote:
Sorry, I meant the TSelectDirectoryDialog component and _not_ TOpenDialog.
G.
----------------------
When using the TSelectDirectoryDialog to select directories, under Linux
the
TSelectDirectoryDialog.Filename has an ending PathDelimiter ('/'), but
under
Windows in doesn't.
Is this normal OS behaviour or a bug?
This is a bug. You should be able to rely on the fact that it ends (or does
not end) on a pathdelimiter. The linux behaviour is the only possible
behaviour...
Why the only possible behavior?
How else will you indicate e.g. the root directory ? Empty String ?
Empty would be the current directory.
It's also consistent with functions like ExtractFilePath, ExtractRelativePath,
which
all expect an pathdelimiter at the end or return a pathdelimiter.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives