Some characters cannot be included directly into a string, for example a double quotation mark.
Instead of using just these characters you will have to prefix them with an escape sequence.
Hard code a string literal
If you want to hard code a string literal to get the length
"Details (" & sMyId & ")"
Returning the Length of a Constant
This puts everything within the string declaration "as is"
These are often referred to as "verbatim strings"
Using the @ prefix enables you to add newline characters and other special characters to your string.
Common Escape Sequences
|\'||single quote - needed for character literals|
|\"||double quote - used to print a double quote character, needed for string literals|
|\\||backslash - used to print a backslash character|
|\n||newline - position the cursor at the beginning of the next line|
|\t||horizontal tab - move the cursor to the next tab stop|
|\r||carriage return - positions the cursor at the beginning of the current line|
© 2020 Better Solutions Limited. All Rights Reserved. © 2020 Better Solutions Limited TopPrevNext