/
How can I declare special characters in a string?

How can I declare special characters in a string?

Q

How can I declare special characters in a string?

A

Use the string.char() operator and with one or more decimal or hexadecimal values.

Example code:

STX = string.char(0x02)
CR_LF = string.char(13, 10)

Related content

How to convert a string to a numeric value?
How to convert a string to a numeric value?
More like this
How can variables of the type string be merged together?
How can variables of the type string be merged together?
More like this
How do I get the length of a string?
How do I get the length of a string?
More like this
How can a variable be created?
How can a variable be created?
More like this
A part of a string variable shall be assigned to another variable, how does it work?
A part of a string variable shall be assigned to another variable, how does it work?
More like this
Do there exist constants known from "C" based coding?
Do there exist constants known from "C" based coding?
More like this