maharajakecil 0 Newbie Poster

i have a source code for vb6.0 to send an integer to my PIC circuit. i dont know wheter my source code is correct or not. please somebody give a hand or comment on my source code.. one more thing, if i key in an integer in val(test) in my vb.6, the value will send to mscomm1 in hex form right?
please.. i'm dying!

Private Sub Form_Load()
Form1.Caption = "App1"
With MSComm1
MSComm1.Handshaking = 2
MSComm1.RThreshold = 2
MSComm1.RTSEnable = True
MSComm1.Settings = "9600,n,8,1"
MSComm1.SThreshold = 1
MSComm1.PortOpen = True
MSComm1.InputLen = 2
MSComm1.DTREnable = True

End With
Command1.Caption = "&Send"
Text1.Text = Val(test)


End Sub

Private Sub Command1_Click()
MSComm1.Output = Text1.Text
End Sub

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.