|
Previous Top Next |
Prototype: | (String pPathOrFile, Byte pTrailing),String |
pPathOrFile | Path or filename to check. |
pTrailing | If true, the method strips trailing backslashes, if false it strips leading backslashes. |
Returns | The stripped path or filename. |
This function will remove either leading or trailing backslashes from file/path names.
Example:
Fn CString(1025)
ITC ITCoreClass
Code
Fn = 'C:\Clarion\'
Fn = ITC.RemoveBackSlash(Fn,True) ! Fn is now 'C:\Clarion'
Fn = '\Clarion\'
Fn = ITC.RemoveBackSlash(Fn,False) ! Fn is now 'Clarion\'
Fn = ITC.RemoveBackSlash(Fn,True) ! Fn is now 'Clarion'
See also: