i have a simple serial port connection that i am trying to pass some letters too and get hte response -- code is as follows:
If MSComm1.PortOpen Then
MSComm1.PortOpen = False
MSComm1.Settings = "19200,n,8,1"
MSComm1.InputLen = 0
MSComm1.PortOpen = True
MSComm1.Output = Text2.Text & Chr$(13)
Buffer$ = Buffer$ & MSComm1.Input
Loop Until InStr(Buffer$, vbCrLf)
Text1.Text = Buffer$
the problem i keep running into is that when it sends information to the serial port i have to click the command button twice to get a response
i got around this by having the portopen stuff in the form load and then the output and information back in the command1 event
how do i have it connect send the ouptput and then get the input all in the command1 click event?