String Literals

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 & ")" 
= SubString(Len("Details"))

Returning the Length of a Constant

String.Copy("some text").Length 

@ Prefix

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
\nnewline - position the cursor at the beginning of the next line
\thorizontal tab - move the cursor to the next tab stop
\rcarriage return - positions the cursor at the beginning of the current line
\vvertical quote
\fform feed

© 2020 Better Solutions Limited. All Rights Reserved. © 2020 Better Solutions Limited TopPrevNext