以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  是什么问题呀  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=32844)

--  作者:x123h123x
--  发布时间:2013/5/9 10:39:00
--  是什么问题呀
.NET Framework 版本:2.0.50727.3643
Foxtable 版本:2013.4.30.1
错误所在事件:表,原料检测表,DataColChanged
详细错误信息:
Exception has been thrown by the target of an invocation.
Index and length must refer to a location within the string.
Parameter name: length

--  作者:Bin
--  发布时间:2013/5/9 10:59:00
--  
索引长度超长了. 检查你代码.
--  作者:lsy
--  发布时间:2013/5/9 11:02:00
--  
这样的问题,看实例。
--  作者:x123h123x
--  发布时间:2013/5/9 21:46:00
--  
Select Case e.DataCol.Name
    Case "产品类别","产品型号","上限位","下限位","宽度A","宽度B","计数脉冲","速度","心率计","身高检测", "拍打1","拍打2","拍打3","揉捏1","揉捏2","揉捏3","宽度大","宽度中","宽度小", "上行走","下行走","靠背升","靠背降","小腿伸","小腿缩","零动力上","零动力下","气泵","气阀1","气阀2","气阀3","气阀4","气阀5","气阀6","气阀7","气阀8", "气阀9","气阀10","气阀11","气阀12","气阀13","气阀14","播放","上一曲","下一曲","加热1","加热2","振动1","振动2","振动3","振动4"
是这个代码太长了吗?那怎么换行呀?

--  作者:程兴刚
--  发布时间:2013/5/9 22:17:00
--  

dim s as String = "产品类别,产品型号,上限位,下限位,宽度A,宽度B,计数脉冲,速度,心率计,身高检测", "拍打1,拍打2,拍打3,揉捏1,揉捏2,揉捏3,宽度大,宽度中,宽度小", "上行走,下行走,靠背升,靠背降,小腿伸,小腿缩,零动力上,零动力下,气泵,气阀1,气阀2,气阀3,气阀4,气阀5,气阀6,气阀7,气阀8", "气阀9,气阀10,气阀11,气阀12,气阀13,气阀14,播放,上一曲,下一曲,加热1,加热2,振动1,振动2,振动3,振动4"
If s.Contains(e.DataCol.Name) = True
   \'您的代码
End If

 

 


--  作者:x123h123x
--  发布时间:2013/5/10 9:39:00
--  

Select Case e.DataCol.Name
    Case "产品类别","产品型号","上限位","下限位","宽度A","宽度B","计数脉冲","速度","心率计","身高检测", "拍打1","拍打2","拍打3","揉捏1","揉捏2","揉捏3","宽度大","宽度中","宽度小", "上行走","下行走","靠背升","靠背降","小腿伸","小腿缩","零动力上","零动力下","气泵","气阀1","气阀2","气阀3","气阀4","气阀5","气阀6","气阀7","气阀8", "气阀9","气阀10","气阀11","气阀12","气阀13","气阀14","播放","上一曲","下一曲","加热1","加热2","振动1","振动2","振动3","振动4"

我是想把这个代码分成几行表示,因为太长了,不便看,语句没问题的


--  作者:Bin
--  发布时间:2013/5/10 9:41:00
--  
长代码换行 帮助里面有的 http://www.foxtable.com/help/topics/2489.htm
--  作者:x123h123x
--  发布时间:2013/5/10 9:50:00
--  

这个代码是用  符号"_",还是用 & _,我都用过了,就是不行呀

 

 


 


--  作者:Bin
--  发布时间:2013/5/10 9:54:00
--  
不会不行的,你认真看清楚帮助.准确的按照它的去做
--  作者:XYT
--  发布时间:2013/5/10 9:56:00
--  
空格那些要对,特别是你这么长的代码