Difference between revisions of "WString"
From Xojo Documentation
(→See Also) |
(→Notes) |
||
Line 11: | Line 11: | ||
WString implicitly converts to String when assigned to a String variable. | WString implicitly converts to String when assigned to a String variable. | ||
− | On Windows, a wide character string means 2 bytes per character. The WString data type is typically used to map | + | On Windows, a wide character string means 2 bytes per character. The WString data type is typically used to map LPWSTR from OS API calls. To map LPWSTR*, use ByRef WString. |
On macOS and Linux, it means 4 bytes per character. | On macOS and Linux, it means 4 bytes per character. |
Latest revision as of 15:51, 25 January 2022
Data Type
A 'wide' character string. This is primarily used with declares on Windows.
Notes
You can assign a standard String to a WString and it will be converted and terminated automatically.
WString implicitly converts to String when assigned to a String variable.
On Windows, a wide character string means 2 bytes per character. The WString data type is typically used to map LPWSTR from OS API calls. To map LPWSTR*, use ByRef WString.
On macOS and Linux, it means 4 bytes per character.
See Also
Declare statements