请教Ascii函数
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