Difference between revisions of "PUnicodeChar"

From Free Pascal wiki
Jump to navigationJump to search
(Created page with "{{Punicodechar}} Back to data types. The '''PUnicodeChar''' data type: * has no size restriction. * is a pointer to a zero-terminated Unicode string with no...")
 
m (Alextpp moved page Punicodechar to PUnicodeChar: proper casing of name)
 
(No difference)

Latest revision as of 13:24, 22 December 2023

English (en)


Back to data types.


The PUnicodeChar data type:

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


Definition of a data field of the PUnicodeChar data type:

  var 
    p : PUnicodeChar;

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 PUnicodeChar data type.