# Re: 请问如何用MSComm控制项控制RS232????

Posted by Tommy_Lee on January 04, 1999 at 14:09:05:

In Reply to: 请问如何用MSComm控制项控制RS232???? posted by Frankie Chan on January 04, 1999 at 12:10:46:

: I don't know how to control I/O using VB??
: Because I need to send the file from PC to 8051 Interface board.

U can use these commands as following:
MSComm1.CommPort = 2 ' open com2
MSComm1.Settings = "9600,N,8,1"
' the protocal setting
MSComm1.PortOpen = True ' open true
MSComm1.Output = "OutputString"
InString = MSComm1.Input 'receive the input
U can get more informations in VB's samples\comm

Follow Ups: