New Option to Log X++ Max-Length String Truncation

In X++ you can optionally declare a string to have a specified maximum length:   str 5 maxLen5String;   Semantically, if you try to store more than 5 characters to this string, it will be truncated.   In March 2010 we blogged here about the X++ max-length string type, and asked how we should handle…

0

Misusing string concatenations

We still see issues where programmers experience really bad things because they’re misusing the str data type. Mainly people complain about poor performance or memory issues when concatenating large strings. So, let me clarify: When strings are concatenated in X++, by doing myString = myString + “some string”;  the system needs to find the end…

1