我有一段程序:
 case combobox1.itemindex of
   0:..................case itemindex of
                             0:...
                             1:...
   1:..................case itemindex of
                             0:...
                             1:...
运行时提示错误:1没有定义
  请问高手我要实现这种嵌套怎么改

解决方案 »

  1.   

    case combobox1.itemindex of
       0:..................case itemindex of
                                 0:...
                                 1:...
                           end;
       1:..................case itemindex of
                                 0:...
                                 1:...
                           end;
    end 总要有的吧!
      

  2.   

    case combobox1.itemindex of
       0:..................case itemindex of
                                 0:...
                                 1:...
                           end;                  //保证一个完整的Case .. of ..end;
       1:..................case itemindex of
                                 0:...
                                 1:...
                           end;
    注意Case语句的完整性!
      

  3.   

    综合上面几位的应该没问题,ItemIndex是什么?前面没控件名,如果是申明的一个整型的变量也可以,End 掉了.