Author: Jonas Bilinkevicius
How to retrieve the last character in a TMemo
Answer:
1 var2 s: string;
3 c: char;
4 begin5 with Memo1.Lines do6 begin7 {Get the last line}8 s := Strings[Count - 1];
9 {Get the last character}10 c := s[Length(s)];
11 end;
12 end;