Wiki Home

Add BS


Namespace: WIN_COM_API

Description:

Add BS is a function which adds a final backslash to the path to a folder if it does not already end in a backslash.

Examples:

AddBS("C:\Program Files\Microsoft Visual FoxPro 9")
C:\Program Files\Microsoft Visual FoxPro 9\
AddBS("C:\Program Files\Microsoft Visual FoxPro 9\")
C:\Program Files\Microsoft Visual FoxPro 9\
AddBS("..\Microsoft Visual FoxPro 9")
..\Microsoft Visual FoxPro 9\
AddBS("")
Returns an empty string of length zero

Add BS will accept a path with forward slashes but will always add a backslash, even if the path already ends with a forward slash:
AddBS("http://www.alvechurchdata.asdfasdfco.uk/bells/")
http://www.alvechurchdata.asdfasdfco.uk/bells/\

Related Functions:


Contributors: Geoff Franklin Ben Creighton
Category VFP Functions
( Topic last updated: 2006.02.03 10:37:23 AM )