if (DataModule4.ADOTable2.State=dsInsert)or(DataModule4.ADOTable2.State=dsEdit) then这句为什么编译老通不过,提示Undeclared indentifier:"dsInsert"
,Undeclared indentifier:"dsEdit"谢谢!!

解决方案 »

  1.   

    if (DataModule4.ADOTable2.State=[dsInsert])or(DataModule4.ADOTable2.State=[sEdit]) then试试这样,,好像有用,,,
      

  2.   

    if (DataModule4.ADOTable2.State in [dsInsert])or(DataModule4.ADOTable2.State in[sEdit]) then
    再试试这个,我也晕了,在网吧,没有环境
      

  3.   

    还是不行啊,郁闷ing...我在网上看别的资料好像原来那样写没错的阿
      

  4.   

    是不是你没有把DataModule4  uses上,,,,,你得在uses段中加入那个数据模块的单元,,这次你再试一试,,,,,
      

  5.   

    没有啊,早就加上了啊,别的语句中使用dataModule4中的组件没有问题的阿