title: How I get the new Field Value from a TClientDataset in Delphi?
body: <p>hi i have a problem with TClientDataset in Delphi. I want to get a Dataset with the changed Data. </p>
  
  <p>here is my code:</p>
  
  <pre><code>procedure TForm2.btnUpdateClick(Sender: TObject);
  var
    I: Integer;
    counter : Integer; //for testing
    value : String;
  begin
       if not Self.DatasetArtikel.Active then
       begin
         ShowMessage('Nicht aktiv');
         Exit;
       end;
  
       if Self.DatasetArtikel.ChangeCount = 0 then
       begin
       ShowMessage('Delta is empty');
       Exit;
       end;
  
       counter := DatasetArtikel.ChangeCount;
  
        //DatasetArtikelUpdate.ClearFields;
        //DatasetArtikelUpdate.CreateDataSet;
  
         DatasetArtikel.Data := Self.DatasetArtikel.Delta; //here i want to transfer the changed data
         Release;
  
      //for I := 0 to DatasetArtikelUpdate.Fields.Count -1 do
        // if not DatasetArtikelUpdate.Fields[I].IsNull then
          //  value := DatasetArtikelUpdate.Fields[I].NewValue;
  
          value := DatasetArtikel.Fields[2].OldValue; 
          value := DatasetArtikel.Fields[2].Value;
          value := DatasetArtikel.Fields[2].NewValue; //here i want the new data
  
          end;
  </code></pre>
  
  <p>for example: In column 3 is the text blueblue and I changed it to redred. the counter say me that 1 is changed it is correct but the value said me that the string is blueblue...but I want the data redred  :((</p>