[thelist] MSCOMM1.input problems!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Minh Tran mm80xx at optushome.com.au
Sat Jun 15 02:56:01 CDT 2002


Hi guys i'm having trouble with a visual basic serial port problem.....

This is part of the code:
Private Sub MSComm1_OnComm()
Dim str As String
    Dim sMessage As String
    Select Case MSComm1.CommEvent
        ' Event messages.
        Case comEvReceive
        str = MSComm1.Input
            sMessage = "Event has been received" & str

okies the problem is, when an incoming comEvReceive has been detected it
will cause an error when i try to save it as a str. There is no way i can
access it...............
why? i dont' know....this code works for another device i have connected it
to but the one that i want to work doesnt' work.
if i remove the str = mscomm1.input
then the code will work........ it will notify me that a messsage is
received........why???????????????????????????????/
the error is "error 8020Error reading comm device"


anyone with visual basic, serial port skills please answer





More information about the thelist mailing list