QUESTION: How can I make sure that a backslash is added to the end of a path ANSWER: Delphi has a function called: IncludeTrailingPathDelimiter. This will return a string with a backslash '/' added to the end, if it does not already have one. Below is one example of how this function works. There is another function called: IncludeTrailingBackslash, this is only included for backwards compatibility (this function should not be used).
|
Last Modified: 28-FEB-02