Next: , Previous: Real Types, Up: Data Types



6.2.5 Strings Types

There are several ways to use strings in GNU Pascal. One of them is the use of the intrinsic string type String which is a predefined schema type. The schema discriminant of this type holds the maximal length, which is of type Integer, so values up to MaxInt can be specified. For String, an assignment is defined. There are many built-in functions and procedures for comfortable strings handling.

@@ ???? String procedures and functions.

Another way to use strings is to use arrays of type Char. For these, an intrinsic assignment is defined as well. Besides, String and Char are assignment compatible. The preferred way, however, is String because of the numerous possibilities for string handling.