An escape sequence is a sequence of characters that isn't represented when used inside a character or string literal, but it's translated into another character or a sequence of characters.
Let's form the most typical example of an escape sequence as a question:
How do you put a "new line" in a single input field?
If you can't thing of it now, how about this:
Yes, that's pretty standard. And yes - ERP.net supports it. So you can write down something like:
Hello, \r\n\ world!
and the interpolated string will be this:
The escape sequence's sytnax is quite straightforward. Just put a
\ (backslash) before the escape character. E.g.,
Did you notice the last row of the table?
Escaping sequences in ERP.net is case SENSITIVE.
That's the reason why
\R is different than
Supported escape sequences
The following escape sequences are defined and supported in ERP.net.
|Escape sequence||Interpretation||ERP.net representation (ASCII)|
*NEW LINE is platform dependent.
Any other escape sequence that not part of the supported ones will be escaped by removing the backslash. E.g.,
\z, will become this:
Caution about Windows file paths
Because file paths in Windows consist of backslashes- e.g.,
They themselves have to be escaped. That's done by doubling them. So, when you need to visualize a backslash, you should write
\\ instead of
\. Or to the example above, the path should look like this: