谢谢:
请问关于tclientdataset的commandtext 的写法和执行语句
clent.close ;
clent.commandtext:='select * from biao where ziduan= '+edit.text  ;
clent.open ;
这样可以吗??? 

解决方案 »

  1.   

    我的为什么老提示:commandtext changes not allow ! 呢????
      

  2.   

    clent.active := false ;
    clent.commandtext:='select * from biao where ziduan= '''+edit.text+'''  ' ;  
    clent.active := true ;
      

  3.   

    provider --option-poallowCommandtext:true
      

  4.   

    DataSetprovider.Options: poAllowCommandtext  True
      

  5.   

    将 gotorun(化俗) 和  hiflower(花) 的答案合起来。
      

  6.   

    DataSetprovider.Options: poAllowCommandtext  True
      

  7.   

    与上一样,要将中间层DataSetprovider.Options: poAllowCommandtext属性设置为True。
      

  8.   

    结合gotorun(化俗)和delphiprogramer(天下第一剑) 的提示你才能完成。