PWideChar: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
Title: PWideChar Pwidechar
| Old | New | | Line |
|---|
| 1 | | - | Back to [[Data type|data types]]. |
| 2 | | - | |
| 3 | | - | The **PWideChar** data type: |
| 4 | | - | |
| 5 | | - | - has no size restriction; |
| 6 | | - | - is a pointer to a zero-terminated wide string with no length limit. |
| 7 | | - | |
| 8 | | - | Definition of a data field of data type PWideChar: |
| 9 | | - | |
| 10 | | - | ``` pascal |
| 11 | | - | var |
| 12 | | - | p : PWideChar; |
| 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 PWideChar data type. |
| 29 | | - | |
| 30 | | - | --- |
| 31 | | - | *From the Free Pascal wiki, page "PWideChar", 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).* |
| 1 | + | #REDIRECT [[PWideChar]] |
Back to history