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

String Class:  AddIntoParenthesis

Previous  Top  Next  


Prototype: (String pOriginal, String pAddition, <*CString pSeparator>),String

 

pOriginalText to modify
pAdditionText to add into parenthesis
pSeparatorOptional separator

 

ReturnsReturns modified text

 

This method can be used to place text into parenthesis. 

 

Example:

 

ITS  ITStringClass

Orig  String(50)

Add   String(10)

Sep   String(2)

Code

Orig = 'This or (what)'

Add  = 'ever'

Sep  = ''

Orig = ITS.AddIntoParenthesis(Orig,Add,Sep)

! Orig now contains 'This or (whatever)'

Add = 'else'

Sep = '-'

Orig = ITS.AddIntoParenthesis(Orig,Add,Sep)

! Orig now contains 'This or (whatever-else)'

 

 

 

See also:

MatchParenthesis

StripParenthesis



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