TrimText('Text', 'TrimOption=0')
Arguments
|
'Text' |
Text signal to be processed |
|
|
'TrimOption' |
Optional argument, specifying which space characters should be removed |
|
|
'TrimOption' = 0 |
Default; remove leading and trailing space characters. |
|
|
'TrimOption' = 1 |
Remove only leading space characters. |
|
|
'TrimOption' = 2 |
Remove only trailing space characters. |
|
|
'TrimOption' = 3 |
Remove all space characters, including the internal space characters. |
|
Description
This function removes space characters from a text. By using the argument 'TrimOption' you can control, which space characters are concerned.
Example
In different steps, the space characters should be removed from the following text of a text signal 'TextToTrim'. The pipe characters mark begin and end of the text including space, but they are not part of the text.
| Lorem ipsum dolor sit amet |
Solution
|
|
|Lorem ipsum dolor sit amet| |
|
|
|Lorem ipsum dolor sit amet | |
|
|
| Lorem ipsum dolor sit amet| |
|
|
|Loremipsumdolorsitamet| |