I'm a novice user, and I can see that this has been discussed before, however, none of the answers are either suitable or complete enough to help. I have recorded a test which involves entering...
It is an inplace editor, right? Can you create a snapshot of the problematic object (use the 'edit' variable from your example) right before calling its SetText method and post this snapshot here?