Hi all,
I'm looking for a way to search for a substring from a starting point backwards. I'm in a TRichEdit component and I need to find the position of the previous carriage return.
chr(10) + chr(13)
and the following one. So what I want is the start and end of the line where the cursor (caret) is.
any ideas?
I was finding API calls that seemed to be able but it seemed a very long and involved way to find a single line.
help?
Thanks
I'm looking for a way to search for a substring from a starting point backwards. I'm in a TRichEdit component and I need to find the position of the previous carriage return.
chr(10) + chr(13)
and the following one. So what I want is the start and end of the line where the cursor (caret) is.
any ideas?
I was finding API calls that seemed to be able but it seemed a very long and involved way to find a single line.
help?
Thanks