String Routines

Before moving on to strings, we remind you of two important character functions. Ord(ch) returns the ASCII value of ch and chr(n) or char(n) returns the character with ASCII value n. For example, ord('A') = 65, ord('a') = 97, chr(67) = 'C' and char(56) = '8'..

You will have already used the + operator to join together (concatenate) strings e.g.
FullName := Forename + ' ' + Surname;
The concat function achieves the same result:
FullName := concat(Forename, ' ', Surname);
As with many of the routines covered here, you do not need to use it because there are other ways to achieve the same result. However, you need to be able to understand it when you are reading code.

Follow the links below to learn more about basic and advanced string routines.

Programming - a skill for life!

Character coding schemes, string routines and text file processing