|
Previous Top Next |
Prototype: | (String pTxt, <String pParLeft>,<String pParRight>),String |
pTxt | String to parse parenthesis out of |
pParLeft | Optional character for left parenthesis (opening) |
pParRight | Optional character for right parenthesis (closing) |
Returns | Returns 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: