1
We need a some function Fit() on a Text datatype that could be used to handle text overflows when assigning.
It would be direct replacement for CopyStr(SomeText, 1, MaxStrLen(TargetText)) pattern that is tedious, noisy and error prone.
There also should be a function TextVar.MustFit() that would return the same text. Both Fit() and MustFit() would not show code analyzer text overflow warnings which is big thing in integration code.
Thanks.
I wrote more on this and code examples here (https://github.com/microsoft/AL/issues/8087).
STATUS DETAILS
Inactive