Hi all,
I'm new to ax.
Can you please help me to split a sentence into 2 part after 5th space?
Thank you so much Sir.
I'm using the approach which you have mentioned first.
It's working.
Thank you
One possible solution is using strFind() to find spaces one by one. Then you can use subStr() to take those two parts.
Another approach is using strSplit() to get words between spaces. The you can iterate the list and create two strings - one with the first five elements and another with the rest. Note that you'll need to add spaces between words.
Yet another approach would be using regular expressions, but I think you should rather stick to native X++ functions.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156