Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

ive no idea how to make this work...

shaz01shaz01 Member Posts: 3
hye there...

im currently working on a vb project, n after doingsome research, ive got this code:

Dim dat(4) ' Declare our 4-byte array

Private Sub Command1_Click() ' Attach code to command button for exit
If MSComm1.PortOpen = True Then
MSComm1.PortOpen = False
End If
End

End Sub

Private Sub Form_Load() ' Form Load Code
Dim TempC

MSComm1.Settings = "1200,N,8,1" 'Set baud rate
MSComm1.CommPort = 1 'Set comm port
.....
.....

unfortunately, i dont know how to activete or initialize he code.
for information, this code is for serial communication with ir receiver...plz help me...
Sign In or Register to comment.