基于VB6.0的MSComm通信方法设计(2)
2016-10-25 01:28
导读:With MyComm Select case .CommEvent Case .comEvReceive ‘ 接收数据 ‘ 对数据进行处理 case .comEVSend ‘发送数据 case .comEventRxParity ‘对奇偶校验错误进行处理 end selecte
With MyComm
Select case .CommEvent
Case .comEvReceive
‘ 接收数据
‘ 对数据进行处理
case .comEVSend
‘发送数据
case .comEventRxParity
‘对奇偶校验错误进行处理
end selectend with
end sub 4.结束语
本文结合实例介绍了基于VB6.0的MSComm串行通信设计。
书目:
1、 范逸之等.利用Visual Basic 实现串并行通信技术
清华大学出版社 2001.3
2、 黄淼云等.Visual Basic控件高手
北京希望出版社 2001.1
3、 范逸之等.Visual Basic与RS-232串行通信控制最新版
青年出版社 2002.1
|