Enforce Substring start index must be more than 1 during compilation
Hi AL Language Development Team,
Could you enforce the start index of Substring(...) to be more than 1 during compilation?
We encountered an issue where users run an action that triggers the following code.

And they got this error during runtime.

I think this error can be prevented by enforcing the above rule. Thank you.
Kind regards, Tuan Nguyen
I guess every String Method that supports a 1-Based StartIndex should lead to compile time errors. e.g. https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/text/text-remove-method
We have internally discussed this issue and have decided not to accept this issue to be fixed at the moment to prioritize other issues. Thank you for raising this concern.