Forum Discussion

sbkeenan's avatar
sbkeenan
Frequent Contributor
11 years ago

Dev Express TextEdit Controls reverting to Original Values

Hi

 

I’m testing an application that uses Developer Express controls (v. 10.2.5.0) and have come across an issue that I’ve not seen before.

 

Basically, my test is to read and store the values of all the fields on the screen, make changes to all of them and save the record, I then want to re-load the record and test that all the changes have been saved.  I then restore all the fields back to their original values.

 

My test involves changing the text in some TextEdit controls, so I use code like:

 



var txtCtrl = <a reference to the current control>;

txtCtrl.EditValue = “<My new Text Here>”;



 

The above works fine and my script runs through a couple of such TextEdit fields, changing their values, as necessary.

 

There are also a number of LookUpEdit fields that I am changing, but as soon as the value of the first LookUpEdit field is changed, the TextEdit fields all revert back to their original values.

 

I’ve tried various different methods for changing the values of the TextEdit fields, such as using the Text / wText  properties and have also tried using the Keys / SetText / Set_EditValue methods, but the result is the same, i.e. the fields all revert back to their original values as soon as the value in the first LookUpEdit control is changed.

 

Has anyone seen this behaviour before and been able to resolve it?  As always, any help or suggestions are greatly appreciated.

 

Many thanks in advance.

 

Regards

Stephen.