Quantcast
Channel: Sage X3 – Tips, Tricks and Components
Viewing all articles
Browse latest Browse all 1519

How to remove spaces from a string

$
0
0

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

Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>