You can find the Charater position in the memo using selstart, then use the
windows message EM_LINEFROMCHAR to determine the line in the memo.

Dave

-----Original Message-----
From: Andrew Masters [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 4 November 1999 15:59
To: Multiple recipients of list delphi
Subject: [DUG]: Rich Edit Dumb Question (I think)


Hi All,

I'm searching for text in a rich edit using FindText (works fine). When I've
found it I want to know the line number I'm on (with regard to the index of
the Lines property). Any simple way of finding this out ? If there is, it's
eluded me this far.

Thanks
Andrew Masters
Clinical Solutions Ltd
Auckland, NZ
Ph: +64-9-476-0106
Fax: +64-9-476-0108 
e: [EMAIL PROTECTED]

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to