当前位置: 代码迷 >> PB >> 关于asca的取码有关问题
  详细解决方案

关于asca的取码有关问题

热度:219   发布时间:2016-04-29 05:27:58.0
关于asca的取码问题
比如:中,用asc函数,返回:20013,用asca函数返回:214,
但根据pb帮助中的说明:contain two characters (one characters as the high byte (ASCII value * 256) and the second character as the low byte). 
应该是:214*256+ x = 20013
这样一来,x成了负数了?
是我哪里理解错误了吗?
------解决方案--------------------
引用:
Quote: 引用:

另外测试一下,中的前半个ascii为214,后半个为208,整个的unicode为20013


未在帮助中查到你说的:contain two characters (one characters as the high byte (ASCII value * 256) and the second character as the low byte).

pb9、pb10、pb12都查了一下

我是在pb12,mid函数的下面的例子中,看到将字符转数组的描述中有这么一句


The following user-defined function, called str_to_int_array, converts a string into an array of integers. Each integer in the array will contain two characters (one characters as the high byte (ASCII value * 256) and the second character as the low byte).

这个和ascii没有关系的
  相关解决方案