以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://www.weistock.com/bbs/index.asp)
--  高级功能研发区  (http://www.weistock.com/bbs/list.asp?boardid=5)
----  vbs编程中,goto语句不能用?  (http://www.weistock.com/bbs/dispbbs.asp?boardid=5&id=56214)

--  作者:qq代人发帖
--  发布时间:2013/9/4 14:17:24
--  vbs编程中,goto语句不能用?
请教:vbs编程中,goto语句不能用?

--  作者:qq代人发帖
--  发布时间:2013/9/4 14:24:26
--  
提示报错
for i=0 to technic.GridCount-1
  Set Grid = Technic.GetGridByIndex(i)
  for j=0 to Grid.formulaCount-1
    set formula=grid.getformulaByIndex(j)
      if formula.name=zbName then
         goto aa
      end if
  next    
  if j<> Grid.formulaCount-1 then exit for
 next
 aa:
提示报错
错误代码1024,缺少语句

--  作者:rushtaotao
--  发布时间:2013/9/4 14:44:30
--  
不能用的 vbs不支持goto