问题描述
- 急求,大家好,我是PB软件的新手,在使用MSCOMM控件编写的时候遇到问题
-
在使用MSCOMM控件编写oncomm程序的时候,显示错误:coo31:syntax error
string Is_input,Out_input
choose case Ole_MSC.object.commevent
case 2 //CommEvent属性为CommEvReceive
Ole_MSC.object.InputLen=10000 //读入缓冲区中的数据长度
Is_input=Ole_MSC.object.Input //从接收缓冲区读取群补数据,写入字符串变量Is_input
解决方案
string Is_input,Out_input
choose case Ole_MSC.object.commevent
case 2 //CommEvent属性为CommEvReceive
Ole_MSC.object.InputLen=10000 //读入缓冲区中的数据长度
Is_input=Ole_MSC.object.Input //从接收缓冲区读取群补数据,写入字符串变量Is_input
把
Ole_MSC.object.InputLen=10000 //读入缓冲区中的数据长度
注释掉试试
应该是这里出问题了
时间: 2024-08-03 18:03:29