How can I tell if a text item has been modified
Posted: Fri Mar 18, 2011 12:29 am
In my application, I load multiple paragraphs of text to TRichViewIedit component using AddTextNL.
Upon saving the contents of the editor, I write the text to various records in the database depending on the content. I want to know if each text item is changed or not in order to set a date changed field for that particular database record (only when it really changes).
I know I can test if any text is modified in the Editor, but is there way to test if each text item was modified (or not) without saving the original text somewhere for comparison? That is, is the a property of a text item which indicates it was modified?
Thanks,
Phil
Upon saving the contents of the editor, I write the text to various records in the database depending on the content. I want to know if each text item is changed or not in order to set a date changed field for that particular database record (only when it really changes).
I know I can test if any text is modified in the Editor, but is there way to test if each text item was modified (or not) without saving the original text somewhere for comparison? That is, is the a property of a text item which indicates it was modified?
Thanks,
Phil