1. Computing & Technology
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

IncludeTrailingBackslash

unit
Sysutils
category
file name utilities

declaration
function IncludeTrailingBackslash(const S: string): string;

description
Adds '\' to the end of a string if it is not already there.

example
var s : string;

s := IncludeTrailingBackslash('c:\MyDocuments');

//s = c:\MyDocuments\

in real code
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.

see also
ExcludeTrailingBackslash,


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.