Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function ExcludeTrailingBackslash(const S: string): string;
Removes one '\' from the end of a string if it is there.
Note that if s is 'c:\\\' this function will remove only the last '\' from s.
var s,s1 : string;
s := ExcludeTrailingBackslash('c:\MyDocuments\');
s1 := ExcludeTrailingBackslash('c:\\\')
//s = c:\MyDocuments
//s1 = c:\\
|
Searching for Files
Stop. This is the one and only solution to file searching. Use Delphi to find any file in any directory and/or subdirectory that match a certain mask. Start searching.
IncludeTrailingBackslash,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|