strDel Function
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Creates a copy of a string with the specified substring removed.
str strDel(
str _text,
int _position,
int _number)
Parameters
Parameter |
Description |
---|---|
_text |
The string to copy from |
_position |
The position at which to begin ignoring characters during the copy. |
_number |
The number of characters to ignore. A minus sign in front of the _number parameter indicates that the (_number-1) characters before the character at the _position parameter are to be removed along with the character at the _position. |
Return Value
The remaining characters copied from the string.
Remarks
strdel is complementary to substr.
strDel("ABCDEFGH",2,3); //Returns the string "AEFGH".
strDel("ABCDEFGH",4,3); //Returns the string "ABCGH".
See also
Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).