Wiki Home

Add BS

Namespace: WIN_COM_API


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.


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\
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:

Related Functions:

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