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

Core Class: RemoveBackSlash

Previous  Top  Next  


Prototype:  (String pPathOrFile, Byte pTrailing),String

 

pPathOrFilePath or filename to check.

 

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

 

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

RemoveForwardSlash

 

 

 



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