![]() |
Next Page |
| Contents > Functions reference (alphabetical list) > Text functions > TrimAll function |
|
|
| TrimAll function |
| Format |
TrimAll(text;trimSpaces;trimType) |
| Parameters |
| text - any text expression or text field |
| trimSpaces - 0 or False, 1 or True |
| trimType - 0 through 3 depending on the trim style that you wish to use |
| Data type returned |
| text |
| Description |
| Returns a copy of text with all leading and trailing spaces removed. |
| Set trimSpaces to True (1) if you want to include the removal of full-width spaces between non-Roman and Roman characters. Set trimSpaces to False (0) if you do not. |
| A character is considered Roman if its unicode value is less than U+2F00. Any character whose unicode value is greater than or equal to U+2F00 is considered non-Roman. |
| Characters within the non-Roman range are those belonging to the CJK symbols/punctuations area, Hiragana, Katakana, Bopomofo, Hangul compatibility Jamo, Kanbun, CJK unified ideographs, and so on. |
| Spaces are removed or inserted depending on the value of trimType, as given in the following tables: |
| In all cases, spaces between non-Roman characters are removed. |
|
|
| * = insert space between non-Roman and Roman text if there isn't one. |
| Examples |
TrimAll(
) returns
if the value of
field is
|
TrimAll(
) returns
|
| Related topics |
| Functions reference (category list) |
| Functions reference (alphabetical list) |
| About formulas |
| About functions |
| Defining calculation fields |
| Using operators in formulas |
|
|
| Contents > Functions reference (alphabetical list) > Text functions > TrimAll function | Next Page |