Sign in Join
Wiki copytemporary

PUnicodeChar: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

Title: Punicodechar PUnicodeChar

OldNewLine
1-#REDIRECT [[PUnicodeChar]]
1+Back to [[Data type|data types]].
2+
3+The **PUnicodeChar** data type:
4+
5+- has no size restriction.
6+- is a pointer to a zero-terminated Unicode string with no length limit.
7+
8+Definition of a data field of the PUnicodeChar data type:
9+
10+``` pascal
11+ var
12+ p : PUnicodeChar;
13+```
14+
15+Examples for the valid assignment of values:
16+
17+``` pascal
18+ p := 'This is a zero-terminated string.';
19+ p := IntToStr(45);
20+```
21+
22+Examples of invalid assignment of values:
23+
24+``` pascal
25+ p := 45;
26+```
27+
28+In the example above, the value to be transferred was not cast to the PUnicodeChar data type.
29+
30+---
31+*From the Free Pascal wiki, page "PUnicodeChar", as it stood on 2023-12-22 after a change by Alextpp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history