G
GeorgeMar
I have some software that uses MSComm with mobile phones but I am having
trouble trapping the Input from the onComm event.
The puzzle is that it works fine for a Motorola phone but not for an Erisson.
Here is the code that I am using
Private Sub MSC_OnComm()
Static Buffer as String
Dim Pos as Integer
If MSC.CommEvent=comEvReceive Then
Buffer=Buffer & MSC.Input
Pos=InStr(Buffer,Chr$(13))
If Pos>0 Then
txtSend=Buffer
txtsend.requery
The above gives me the feedback from the device which is displayed in the
control txtSend.
All the settings are the same with the exception of the Com Port. Both
phones send messages OK but only the Motorola receives the feedback.
Does anyone know why it might work for one phone and not another?
many thanks
george
trouble trapping the Input from the onComm event.
The puzzle is that it works fine for a Motorola phone but not for an Erisson.
Here is the code that I am using
Private Sub MSC_OnComm()
Static Buffer as String
Dim Pos as Integer
If MSC.CommEvent=comEvReceive Then
Buffer=Buffer & MSC.Input
Pos=InStr(Buffer,Chr$(13))
If Pos>0 Then
txtSend=Buffer
txtsend.requery
The above gives me the feedback from the device which is displayed in the
control txtSend.
All the settings are the same with the exception of the Com Port. Both
phones send messages OK but only the Motorola receives the feedback.
Does anyone know why it might work for one phone and not another?
many thanks
george