strRep Function

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Repeats a string of characters.

str strRep(str _text, str _number)





The string to repeat.


The number of times to repeat the string.

Return Value

A new string that contains the contents of the original string repeated the specified number of times.


The following example prints the text string ABABABABABAB.

    static void strRepExample(Args _arg)
        str strL;
        strL = strRep("AB",6); 
        print strL;

See also

strPoke Function

strIns Function

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).