identifierStr Function
Dynamics AX 4.0
Converts indent to a string.
str identifierStr(int indent)
A string variable is set to contain its own name in square brackets.
Writing myvar = "["+identifierStr(myvar)+"]"; is the same as writing myvar = "[myvar]";
But if you rename the variable myvar and forget to change the right hand side (the text assigned to it), the first expression will fail to compile while the second will compile but give the wrong result.
Community Additions
ADD
Show: