Help Center

DWStrAcodefunction

Translates Unicode chars to ansi bytes.

String ManagementfunctionDWSTRProcs.incdocumented

Syntax

FUNCTION DWStrAcode (BYVAL pwszStr AS WSTRING PTR, BYVAL nCodePage AS LONG = 0) AS STRING

Parameters

NameDescription
pwszStrThe Unicode string to translate.
nCodePageThe 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