View previous topic :: View next topic |
Author |
Message |
itsatomic
Joined: 12 Jun 2006 Posts: 38
|
Posted: Tue Jul 18, 2006 3:25 am Post subject: Lines.Delete(Index) broken |
|
|
Hi Michael
I have the following code:
Code: | SyntaxMemo1.Lines.Delete(SyntaxMemo1.CaretPos.y); |
and it is behaving strangely. It either deletes the line plus one char, or deletes the line leaving the first char.
Please let me know when you have fixed this?
It seems surprising to me that noone else has encountered this behaviour.
Thanks
Aaron |
|
Back to top |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Tue Jul 18, 2006 8:08 am Post subject: |
|
|
Fixing (ecStrUtils.pas):
Code: | procedure TSyntMemoStrings.Delete(Index: Integer);
begin
DeleteTxt(LineIndex(Index) - 1, LineSpace(Index));
end; |
|
|
Back to top |
|
|
itsatomic
Joined: 12 Jun 2006 Posts: 38
|
Posted: Wed Jul 19, 2006 1:00 am Post subject: |
|
|
Thanks, worked nicely. |
|
Back to top |
|
|
|