Use CHR(nn) to convert to a character - where nn is the decimal value of the ASCII code
If you want a character hard coded with a CONST, use #nn
eg
[tt] CONST
CR = #13;
Exclamation = #33;
[/tt]
Similarly, you can code it into a string:
[tt]
MyString := 'Greetings' + #33;
[/tt]
or
[tt]
MyString := 'Greetings' + chr(33);
[/tt]
BTW, related functions to ORD are SUCC, PRED and INC(ie successor, predecessor and increment). Check out the help by searching for ordinal routines in the index tab
You can often find help for related functions by placing your cursor over the function, press F1, then when the help appears, and choose See Also
Chris ;-)