[next] [prev] [prev-tail] [tail] [up]

#### Strings

Free Pascal supports the String type as it is defined in Turbo Pascal (A sequence of characters with a specified length) and it supports ansistrings as in Delphi. To declare a variable as a string, use the following type specification:

_________________________________________________________________________________________________________ ShortString
___________________________________________________________________

The meaning of a string declaration statement is interpreted differently depending on the {$H} switch. The above declaration can declare an ansistrng or a short string.

Whatever the actual type, ansistrings and short strings can be used interchangeably. The compiler always takes care of the necessary type conversions. Note, however, that the result of an expression that contains ansistrings and short strings will always be an ansistring.

[next] [prev] [prev-tail] [front] [up]