|
Previous Top Next |
Prototype: | (String pOriginal, String pAddition, <*CString pSeparator>),String |
pOriginal | Text to modify |
pAddition | Text to add into parenthesis |
pSeparator | Optional separator |
Returns | Returns 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: