strIns Function

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

Builds a string by inserting one string into another.

str strIns(str _text1, str _text2, int _position)

Parameters

Parameter

Description

_text1

The string into which to insert.

_text2

The string to insert into the other string.

_position

The position where the first character of the _text2 parameter should occur in the output string.

Return Value

The combined text string.

Remarks

The strIns function is complementary to the strDel function. If the value of the _position parameter is greater than the length of the original string, the string to be inserted is appended to the end of the original string.

  • strIns("ABFGH","CDE",3); //Returns the string "ABCDEFGH".

  • strIns("ABCD","EFGH",10); //Returns the string "ABCDEFGH".

See also

subStr Function

strDel Function

strRem Function

strLTrim Function

strRTrim Function

strKeep Function

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