strRep Function [AX 2012]

Updated: December 10, 2009

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)

Parameter

Description

_text

The string to repeat.

_number

The number of times to repeat the string.

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;
    pause;
}

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

Community Additions

ADD
Show: