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