DWStrAcodefunction
Translates Unicode chars to ansi bytes.
Syntax
FUNCTION DWStrAcode (BYVAL pwszStr AS WSTRING PTR, BYVAL nCodePage AS LONG = 0) AS STRING
Parameters
| Name | Description | |
|---|---|---|
pwszStr | The Unicode string to translate. | |
nCodePage | The code page used in the conversion, e.g. 1251 for Russian. If the code page is omited, the function will use CP_ACP (0), which is the system default Windows ANSI code page. |
Return value
The translated string.
Description
Translates Unicode chars to ansi bytes.
Reference
- Include file
DWSTRProcs.inc - Defined in AfxNova/DWStrProcs.inc:198
- Documented in String Management/DWString Procedures.md
- Topic: String Procedures