Retrieve Lines from a string containing multiple lines using StrLine() Function

str strLine(str string, int count)
Example:
static void strLineExample(Args _arg)
{
    str mytxt = "first-line\nsecond-line\nlast-line";
    ;
 
// Prints "second-line".
    print strLine(mytxt,1);
 
// Prints "last-line".
    print strLine(mytxt,2); 
    pause;
}
https://msdn.microsoft.com/en-us/library/aa577258.aspx

Comments

  1. This is the information that I was looking for.. Thanks for the efforts you put to gather such a nice content and posted here.
    Microsoft Dynamics AX Training|Microsoft Dynamics AX Online
    Training

    ReplyDelete

Post a Comment

Popular posts from this blog

D365: SSRS Report Development/ Customization

D365: X++ code to add custom lookup on worker to show specific workers team workers only

Error message when you log on to a Microsoft Dynamics AX 4.0 client: "You are not a recognized user of Microsoft Dynamics AX"