From Free Pascal wiki
Revision as of 12:35, 23 February 2020 by Trev (talk | contribs) (English translation of German page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

Back to data types.

The PWideChar data type:

  • has no size restriction;
  • is a pointer to a zero-terminated wide string with no length limit.

Definition of a data field of data type PWideChar:

    p : PWideChar;

Examples for the valid assignment of values:

  p := 'This is a zero-terminated string.' ;
  p := IntToStr(45);

Examples of invalid assignment of values:

  p := 45;

In the example above, the value to be transferred was not cast to the PWideChar data type.