Home Segments Index Top Previous Next

482: Sidetrip

Occasionally, you need to specify various special characters. You can specify the space character, straightforwardly, as $ . Alternatively, you can specify the space character, and several others, by accessing the CharacterConstants dictionary with various strings:

String Character value
'Space' space
'Tab' tab
'Cr' carriage return
'Lf' line feed
'Ff' form feed
'Bs' backspace

For example, if you need the tab character, you can fetch it from the CharacterConstants dictionary via the following expression:

CharacterConstants at: 'Tab'