Hi

I'm using the ClientDataSet.Locate function to make the desired entry active, and then the Edit....Post functions to change specific fields.

However all i achieve to do is make a NEW entry, instead of editing an existing entry.

The ClientDataSet accesses an xml file.

Eg,
ClientDataSet1.Locate('Name', Bob,[]);
ClientDataSet1.Edit
FieldByName('Balance').AsInteger:=new_balance
ClientDataSet1.Post

What am i doing wrong?