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

How to Extract a Left Sub-String from a given string in Sage X3

$
0
0

In Sage X3, you may come across various scenarios where you need to get a sub-string from an existing string. You can derive sub-string from both the ends i.e. from the left or the right or starting from any particular position of a given string.

This blog will help you to extract the leftmost sub-string from a given string i.e. We can derive a sub-string with any number of characters from the left of the given string.

Sage X3 provides the below special function to achieve the same:

left$ (string,nb_char)

This function is used to extract a sub-string starting from the left-hand side first letter of an original string to the letter ending with specified number of characters.

Where,

string -> Original string with an alphanumeric expression
nb_char -> Numerical integer expression for the length of a string to be extracted.

Let’s consider the following example for extraction of sub-string with 4 letters from left to better understand the working of left$ function.

Kindly refer to the below snippet of code for better understanding.

Local Char YSTRING(50)
YSTRING = “JACKFRUIT”
Infbox left$(YSTRING, 4)

The above snippet of code will give the output as “JACK”.

Hope this blog helps!

About Us

Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix has some unique solutions of Sage X3’s integration with Sage CRM, Salesforce.com and Magento eCommerce. It also offers best-in-class Sage X3 and Sage CRM customization and development services to Sage business partners, end users, and Sage PSG worldwide.

For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com . We will be glad to assist you.

Also Read:

How to attach the Report to the Window in Sage X3
Adding Crystal Report In Sage X3
Sage X3 reports as per Indian Business Standards – Part III
Send Invoice Reports Automatically in Sage X3
Sage ERP X3 Reports – India Specific Reports – Part I


Viewing all articles
Browse latest Browse all 1524

Trending Articles



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