| 发表于:2007-03-08 18:26:221楼 得分:40 |
不能像你那样写 我给你写个现成的函数。下面的代码是手写的,也许有一点点小故障,也许没有。如果有,你自己调试一下吧。旨在给你个思路。 public function convertstringtobyte(str as string) as byte() dim str() as string = str.split( " ") dim byter(str.length - 1) as byte for i as integer = 0 to str.length -1 byter(i) = val( "&h " & str(i).trim) next return byter end function | | |
|