activex------microsoft forms2.0 listbox 控件在用“计算“
--添加ListBox条目
CallSprite(@"listbox",#CallString,"AddItem('八相萧家',0)"
CallSprite(@"listbox",#CallString,"AddItem('班门弄斧',1)"
CallSprite(@"listbox",#CallString,"AddItem('邦昌登楼',2)"
CallSprite(@"listbox",#CallString,"AddItem('杯弓蛇影',3)"
CallSprite(@"listbox",#CallString,"AddItem('卞庄刺虎',4)"
CallSprite(@"listbox",#CallString,"AddItem('擘妖钟馗',5)"
CallSprite(@"listbox",#CallString,"AddItem('参政鱼头',6)"
时前6个好用,到第七个以后(参政鱼头),在运行时提示:
Non whitespace control charater found in call string at postition 13
Non whitespace control charater in call string not allowed
如果这样:
CallSprite(@"listbox",#CallString,"AddItem('八相萧家',0)"
CallSprite(@"listbox",#CallString,"AddItem('班门弄斧',1)"
CallSprite(@"listbox",#CallString,"AddItem('邦昌登楼',2)"
CallSprite(@"listbox",#CallString,"AddItem('杯弓蛇影',3)"
CallSprite(@"listbox",#CallString,"AddItem('卞庄刺虎',4)"
CallSprite(@"listbox",#CallString,"AddItem('擘妖钟馗',5)"
CallSprite(@"listbox",#CallString,"AddItem('参政鱼头',6)"
CallSprite(@"listbox",#CallString,"AddItem('盗酒毕卓',7)"
CallSprite(@"listbox",#CallString,"AddItem('道听途说',8)"
CallSprite(@"listbox",#CallString,"AddItem('邓攸弃子',9)"
CallSprite(@"listbox",#CallString,"AddItem('斗耻趋王',10)"
CallSprite(@"listbox",#CallString,"AddItem('防微杜渐',11)"
CallSprite(@"listbox",#CallString,"AddItem('伏羲画卦',12)"
CallSprite(@"listbox",#CallString,"AddItem('刚愎自用',13)"
在点击6的确定后会提示7, 8, 9...这样
AddItem('盗酒毕卓',7)call of Additem failed
总之在listbox中只能显示前6个,别的就不能添加,
这是为什么?有没有 解决的方法?
小弟急啊!