strPoke Function [AX 2012]
Updated: December 8, 2009
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Overwrites part of a string with another string.
str strPoke(
str _text1,
str _text2,
int _position)
The new string can be longer than the original string. However, if the value of the _position parameter is greater than the length of the string, the original string is returned without replacements.
-
strPoke("12345678","AAA",3); //Returns the string "12AAA678".
-
strPoke("abcde","4567",4); //Returns the string "abc4567".
-
strPoke("abcde", "4567", "10"); //Returns the string "abcde".
Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).
Community Additions
ADD
Show: