As per the subject: how can I check if two TRichview have identical content ?
I am not referring to the text only but all the information (font sizes and attributes, paragraphs, alignments and so on)
Many thanks
Pio Pio
Compare if two TRichViews have identical content
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
You can save the both documents to TMemoryStream and then compare Stream.Memory (check Stream.Size-s, if equal, use CompareMem).
But this check returns True when all documents are absolutely identical.
It returns False if attributes of text or paragraphs are the same, but indexes in collections of TextStyles or ListStyles are different.
But this check returns True when all documents are absolutely identical.
It returns False if attributes of text or paragraphs are the same, but indexes in collections of TextStyles or ListStyles are different.