www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Core Class: RemoveForwardSlash

Previous  Top  Next  


Prototype:  (String pPathOrFile, Byte pTrailing),String

 

pPathOrFileURL, path or filename to check.

 

pTrailingIf true, the method strips trailing forwardslashes, if false it strips leading forwardslashes.

 

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

RemoveBackSlash

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/removeforwardslash_core.htm