当前
q.open
在一个dbedit编辑框,如何判断录入的数据与最原始数值(就是还没有POST前的数值)是不是有发生变化。

解决方案 »

  1.   

    似乎数据集有版本,也可以在enter前记录数据,post时比较
      

  2.   

    Use Modified to determine whether the Text property of the edit control changed. If an application directly alters the Text property of an edit control, it should set the Modified property to true.
      

  3.   

    lz可以在q.open的时候,把初始值记录下来,然后,每当你需要判断的时候,再去跟记录值判断。
      

  4.   

    if DBEdit1.Text = ADOQuery1.FieldByName(DBEdit1.DataField).AsString then ;
      

  5.   

    使用Modified属性判断Edit控件的Text是否发生变化.如果应用程序直接修改了Edit控件的Text属性,那么Modified属性将被设置为True.