10.10 Character constants

Character constants are usually used to get the code point value of a character in an easy way. If you embed a character in single quotes (''), Hollywood will replace this specification with the code point value of the character. Thus, character constants are always of the data type Number. Here is an example:

 
DebugPrint('A')    ; prints 65

You can also put escape sequences into a character constant. For example:

 
DebugPrint('\n')  ; prints 10

See String data type for more information on which escape sequences Hollywood supports.


Show TOC