ChrW

首页  后退  前进

ChrW
down2

ChrW

返回 Unicode 码的对应字符.

 

ChrW ( UNICODEcode )

参数

UNICODEcode

unicode 代码值, 范围 0-65535 (例如, 65 返回大写字母 A).

返回值

成功:

返回 Unicode 代码的字符串.

失败:

返回空字符串, 设置 @error 为非 0 值, 表示 UNICODE 代码值大于 65535.

备注

参考 ASCII 字符代码 的完整列表.

 

函数示例

#include <MsgBoxConstants.au3>
Local $sText = ""
For $i = 256 To 512
    $sText = $sText & ChrW($i) ; Or $sText &= ChrW($i) can be used as well.
Next
MsgBox($MB_SYSTEMMODAL, "Unicode chars 256 to 512", $sText) ; Display the unicode characters between 256 to 512.

----------------------------------------

 

该函数可以通过命令 exect 调用

参见:

Asc, AscW, Chr, StringFromASCIIArray

例子
copy
ChrW(256) ;; 返回ā

 

exect=ChrW(257) GLOBALEXECT<a> ;; 返回与指定的Unicode代码相对应的字符

up2

tcimage © Аверин Андрей для Total Commander Image Averin-And@yandex.ru