Sometimes text values contain leading, trailing, or multiple embedded space characters. These characters can sometimes cause unexpected results when you sort, filter, or search. As these characters are not easily noticed, the unexpected results may be difficult to understand. To remove these unwanted characters, you can use “vireblc” in X3.
Syntax
vireblc( string, option )
Where “string” is an Alphanumeric expression for the string to be modified and “option” is an Integer numerical expression for the option to use to delete spaces from the string.
“vireblc” is used to delete spaces from a string using the following options.
Option | Removal of spaces |
0 | At the start of the string. |
1 | At the end of the string. |
2 | At the start and end of the string. |
3 | At the start, truncating to the first following space. |
4 | Throughout the string. |
5 | Consecutive spaces throughout the |