thanks for the reply Daddy.
When I experiment with it though, the editor is telling me that 'Tmemo does not contain a member names InnerControl' ?
I had an error on the EM_ScrollCaret too, until I guessed it needed Messages added to the Uses statement.
That was a pure guess, based on my own reasoning. I couldn't see a way of deducing that from Help?
Can I just check something.
You used MaxInt instead of looking for the the number of lines in the Memo1?
Just goto the the highest line that's possible, but if not that many lines existing, the memo will just show the highest, right?
Assuming I am correct, that bit I can understand OK.
But the sendmessage, how on earth could I work out for myself without knowing, how to do that?
Now you've told me I can look it up in Help and see what's going on, but I'd like to be able to reason the answer for myself, at least at some point.
I hate having to ask for help too often, as I like to learn and find my own way, and whilst I know I am lowly white or yellow belt, among Black Belt 5th dan's, but I'm kind of floundering in the how do I find out for myself stage...
I have googled a fair bit of stuff and sorted myself out based on what I have found though.
Steve (Delphi 2007 & XP)