Hi experts... I have 2 TRichEdits. The indexing and sequence of the characters within them is important to my project and therein lies my question. To illustrate, let's say I have:
... as the contents of the 1st TRichEdit... the indexing of them being naturally a=1, b=2, c=3, d=4, etc. I then copy the contents of RichEdit1 to RichEdit2. Then in RichEdit2 I play around with the contents a bit and re-arrange the letters... for example maybe like this:
I would still like to be able to obtain - when I examine each character individually - the origin index position that it was in before all the re-arranging was done. So while traversing the contents of RichEdit2 from left to right, I could retrieve 4 for the 1st character d, then retrieve 1 for the next character a, then retrieve 7 for the next character g, and so on.
Is there any way, or anywhere for a TRichEdit to store such information? If there was a separate "tag" property amongst the Attributes of a RichEdit, that would be perfect for this, but it doesn't look like there is - there's just one 'tag' property for the whole RichEdit. Would anyone have any thoughts on a solution for this?