当执行到下一句把从串口读入的数据存到一个字符型数组里的时侯aa=thisformolecontrol.input提示要打开该串口。怎么回事呀?
我试了试把语句改成以下型式但是会提示the port already open.这是怎么回事呀。
thisform.olecontrol2.CommPort = 2
thisform.olecontrol2.Settings = "9600,N,8,1"
thisform.olecontrol2.InputLen = 0
thisform.olecontrol2.PortOpen = .t.
thisform.olecontrol2.output = TRIM(thisform.text2.value)