Hi all,
I'm doing a lot of messing around with strings, and I'm trying to find the point in a string at which a change was made by the user.
What I really need is a command like GetEditBoxCursorPosition() - can't believe that's not there!
I've tried comparing the string from the edit box and the string stored in a variable, to locate the character index at which they become different, but this doesn't work if the strings contain more than one occurrence of the same letter together.
e.g.
Old string: abcdddddddefgh
New string: abcddddddddefgh
Impossible to tell where the extra 'd' was added!
Can anyone think of a solution?
Thanks,
James