Escape sequences

Top  Previous  Next

The FTCL language allows for the use of escape characters when defining strings in the same way that the Java programming language does. The \ character is treated specially inside of strings indicating that the next character is to be escaped.

 

Escape sequences

 

Escape sequence

Description

\t

Tab

\r

Carriage return

\n

Line feed

\\

Backslash

\"

Quote

 

Note

 

This is especially important to consider when defining local paths on the Windows operating system. The local path c:\tmp must be defined as c:/tmp or c:\\tmp when using FTCL commands that use local path information.

 

Example

 

Incorrect

 

lcd "c:\tmp\home"

 

Correct

 

lcd "c:/tmp/home"

 

The first example is incorrect as the "\t" in "c:\tmp\home" would be interpreted by FTCL as a tab character instead of a literal \t. The second example corrects this issue by using a forward slash instead of a backslash.

 





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2023 Redwood Software, Inc.