AnsiString

From Free Pascal wiki
Revision as of 13:22, 19 August 2019 by Trev (talk | contribs) (Created AnsiString English page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

English (en)

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.