MPort=4
ole_MSComm.object.ComOle_MSComm. Object. Settings='19200, N, 8, 1,'
Ole_MSComm. Object. Rthreshold=1
Ole_MSComm. Object. Inputlen=0
Ole_MSComm. Object. PortOpen=true
Ole_MSComm oncomm event:
Choose case mEvent ole_MSComm.object.Com
Case 2
String ls_Msg
Ole_mscomm. Object. InputLen=0
Ls_Msg=ole_mscomm. Object. Input
St_3. Text=ls_Msg
Messagebox (" 11 ", ls_Msg)
The end choose
Why was I value such as 116 # a (com wizard test), why st_3 display is 16 # a, messagebox tip is 1, how can I get 116 # a directly?
CodePudding user response:
Ole_1. Object. Rthreshold=1 wrong here,Don't=1
The length of the to=send to come over
CodePudding user response:
I am sending a character length is not sure, 2-5 May, also cannot be set to 5, because if the two I also want to come out, what method did not make me what a serial port what is coming out to?