Ansistring

From Free Pascal wiki

Deutsch (de) English (en) français (fr)

The data type AnsiString has no size limit and comprises an array of Char (1 byte per character).

Definition of a data field of the AnsiString type:

  Var 
    a: AnsiString;

Examples of valid value assignment:

    a: = '0123ABCabc456';
    a: = a + '! "§ $% & / () =?';
    a: = a + IntToStr (45);

Examples of invalid value assignment:

  a: = True;
  a: = 4;

In the last two examples, the value has not been converted to the AnsiString type.