为什么mscomm.input收到的会是乱码,附带原代码-我给200 把Mid换成MidB试试要注意VB中字符处理的这些细节问题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还是一样乱码为什么它在foxpro里面会写成这样以下为从硬件取得卡号及数据 local arrayx this.parent.MsComm.InBufferCount = 0 this.parent.MsComm.InputLen = 1 this.parent.MsComm.CommPort = val(this.parent.text2.text) if this.parent.MsComm.PortOpen this.parent.MsComm.PortOpen = .f. endif this.parent.MsComm.PortOpen = .t. this.enabled = .f. local array1[3],buffer,s,kh,vsign,ntime,jh s = "" do while .t. if this.parent.mscomm.inbuffercount > 0 vsign = .t. buffer = this.parent.mscomm.input array1 = buffer if asc(array1[1]) != 13 s = s + array1[1] endif 请教一下VC中的UINT,ULONG,UCHAR诸如此类的类型在VB中如何表示? VB连接数据库问题 如何实现键盘监控功能。 关于splitframe控件的问题。谢谢大家 Merry Christmas(发礼物了!) 急,如何用Flash与VB程序进行通讯 紧急! vb6+sp5开发的OCX打包成cab的问题? 请问一个问题:关于动态建立控件的问题! 关与MSCHAT的一个问题 急﹗為什么查詢中的select語句用在打印中就不靈光了。 关于vb读取blob数据的问题急 大侠快近(100分哦)
为什么它在foxpro里面会写成这样
以下为从硬件取得卡号及数据
local arrayx
this.parent.MsComm.InBufferCount = 0
this.parent.MsComm.InputLen = 1
this.parent.MsComm.CommPort = val(this.parent.text2.text)
if this.parent.MsComm.PortOpen
this.parent.MsComm.PortOpen = .f.
endif
this.parent.MsComm.PortOpen = .t.
this.enabled = .f.
local array1[3],buffer,s,kh,vsign,ntime,jh
s = ""
do while .t.
if this.parent.mscomm.inbuffercount > 0
vsign = .t.
buffer = this.parent.mscomm.input
array1 = buffer
if asc(array1[1]) != 13
s = s + array1[1]
endif