Hi Tim!
If you have the size of each line, you can sum this value until the line before of the line that error happening more the position of the line with the error and to use SelStart. Sample:
ThisForm.MyEdit.SelStart = 45
Is one experiment.
Bye!
Good Luck!
Erick
Força Sempre!
Strength Always!