# Re: 请教VB 通讯接收技巧

Posted by callback on November 06, 1998 at 13:50:00:

In Reply to: 请教VB 通讯接收技巧 posted by Heng on November 06, 1998 at 12:09:30:

sorry....重新 post

接收程式可以这么写

dim buffer() as byte

MSComm1.InputMode = comInputModeBinary
do
DoEvents
Loop Until MSComm1.inbufferCount>=5
buffer=MSComm1.input
'你要印出这5个字元的话要做转换
Text2.text=chr(buffer(0)) & chr(buffer(1)) & chr(buffer(2)) & chr(buffer(3)) & chr(buffer(4))

'有关VB RS232 或 modem 通信程式有任何问题, 欢迎来信一起研究
我自己摸索了许久, 有一些心得, 手上正在进行相关的project

Follow Ups:

- Re: 请教VB 通讯接收技巧--利用于传真如何?? Gary Chen 13:23:45 11/24/98 (1)
  - Re: 我想要将c:\123\test.txt 利用这个控制项来做传真 CHARYANG 02:46:24 11/28/98 (0)
- Re: 补充 callback 13:58:27 11/06/98 (0)