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)

Parameters

Parameter

Description

_text

The string to repeat.

_number

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.

Example

The following example prints the text string ABABABABABAB.

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

See also

strPoke Function

strIns Function

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