Re: How to extract a line from a memo object?
Skybuck Flying <[email protected]> Fri, 9 Sep 2022 17:00:18 -0700 (PDT)
| Newsgroups | alt.comp.lang.borland-delphi |
|---|---|
| Message-ID | <[email protected]> |
On Sunday, September 4, 2022 at 6:37:11 PM UTC+2, SnookyT wrote: > I have used the following line ok > edtProp.Text := memo1.Lines[8]; > but how do I get the line that was clicked on instead of using 8? > thx S This is one of those shitty Delphi VCL shortcomings, hard to do/use. There will be other issues like scrolling etc. Consider using another component which might be a bit better like TListBox. Some kind of control that isolates the lines from each other and returns an index for what was selected. Unless you really want to use a TMemo, what is it that you want to do ? Bye for now, Skybuck.