TStringList - Compare, update and Save
Posted on 2002-03-30
I have a procedure that will return 3 Strings in the form of:
FunctionName.Returns(Parameter1.Lines, Parameter2.lines, Parameter3.lines);
I am placing these strings in a TMemo for Display on a timer fire event. However, if the strings are identical they still update. I dont want to update my TMemo until they are different regardless of the timer event.
So, I am looking for some code that will take these original three parameters, compare them to the previous 3 Strings, and if they are unique add them to a TMemo so that I have a history of all the parameters in the Memo for saving or printing.
(Parameters 1 and 2 can be NIl, so the test should also accomidate a nil return.)