Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Splitting a string with multiple lines

$
0
0

Hi

I am having a problem, i am trying to splitting a string. But i having problems with it.

I have read about using StrLine, but it complicates it a bit.

Str  text = 2013: 1512 2014: 25222 2015: 35233 2016: 1623233;

// Prints "second-line".
    print strLine(text,1);
 
// Prints "last-line".
    print strLine(text,2); 
    pause;

Does'nt work. It needs "\n"

So i thought of making a loop that inserts "\n" ?
And StrIns only works if you know the which position to insert in. Which i don't,
when the amounts can change.

Please help

Viewing all articles
Browse latest Browse all 175888

Trending Articles



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