请教Ascii函数

heyixiang heyixiang 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Char函数和Seq函数是互逆的,就是将ASCII字符和数值编码相互转换,但Ascii函数是干什么用的呢?英文文档的例子我没有看明白,请能人指点一下。

Ascii Function
Converts the values of characters in a string from EBCDIC to ASCII
format.

Syntax
Ascii (string)
string is the string or expression that you want to convert. If string is a
null value, a null value is returned.

Remarks
The Ascii and Ebcdic functions perform complementary operations.

Warning If NLS is enabled, this function may return data that is
not recognized by the current character set map.

Example
This example shows the Ascii function being used to compare a
string of EBCDIC bytes:

EbcdicStr = Char(193):Char(241) ;* letter A digit 1 in EBCDIC
AsciiStr = Ascii(EbcdicStr);* convert EBCDIC to ASCII
If AsciiStr = "A1" Then;* compare with ASCII constant
... ;* ... this branch is taken
EndIf
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
heyixiang
数据仓库 7,394 成员 6,741 内容