i had develop a GUI using vb6.0 and it source code but i really dont know whether my souce code is working or not. could somebody help me on this to check my souce code? one more thing, if i key in an integer in val(test) in the source code, the integer will be send to mscomm1 in hex format, right? thanks..
[CODE=vb]
Private Sub Form_Load()
Form1.Caption = "App1"
With MSComm1
MSComm1.Handsha king = 2
MSComm1.RThresh old = 2
MSComm1.RTSEnab le = True
MSComm1.Setting s = "9600,n,8,1 "
MSComm1.SThresh old = 1
MSComm1.PortOpe n = True
MSComm1.InputLe n = 2
MSComm1.DTREnab le = True
End With
Command1.Captio n = "&Send"
Text1.Text = Val(test)
End Sub
Private Sub Command1_Click( )
MSComm1.Output = Text1.Text
End Sub[/CODE]
[CODE=vb]
Private Sub Form_Load()
Form1.Caption = "App1"
With MSComm1
MSComm1.Handsha king = 2
MSComm1.RThresh old = 2
MSComm1.RTSEnab le = True
MSComm1.Setting s = "9600,n,8,1 "
MSComm1.SThresh old = 1
MSComm1.PortOpe n = True
MSComm1.InputLe n = 2
MSComm1.DTREnab le = True
End With
Command1.Captio n = "&Send"
Text1.Text = Val(test)
End Sub
Private Sub Command1_Click( )
MSComm1.Output = Text1.Text
End Sub[/CODE]
Comment