www.icetips.com  Icetips Utilities Documentation 7/6/2014    

String Class:  StripParenthesis

Previous  Top  Next  


Prototype: (String pTxt, <String pParLeft>,<String pParRight>),String

 

pTxtString to parse parenthesis out of
pParLeftOptional character for left parenthesis (opening)
pParRightOptional character for right parenthesis (closing)

 

ReturnsReturns contents of pTxt without opening/closing parenthesis

 

This method removes an opening and closing pair of parenthesis from the beginning and end of string.  The left and right parenthesis can be set to different characters if the contents needs to be removed from square brackets for example.

 

Example:

ITS  ITStringClass

S    String(1024)

Code

S = '(123+x)'

Message('Stripped: ' & ITS.StripParenthesis(S))

! Would show '123+x'

S = '[APPLICATION]'

Message('Stripped: ' & ITS.StripParenthesis(S))

! Would show 'APPLICATION'

 

 

See also:

MatchParenthesis

AddIntoParenthesis



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