How to Select lines ?

General TRichView support forum. Please post your questions here
Post Reply
l0f
Posts: 2
Joined: Thu Aug 24, 2006 6:53 am

How to Select lines ?

Post by l0f »

Examples:

aaaaaaaaa
*********
bbbbbbbbb
cccccccccc
ddddddddd
*********
eeeeeeeee

I'll select the Data between ********* and ********* ,
(
bbbbbbbbb
cccccccccc
ddddddddd
)

What should I do .

if you understand chinese please read the below text :
(我想选择*********和*********之间的数据,应该怎么办?)

thank you !
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you want to select lines in program code?
Do you mean lines on screen or paragraphs? Lines depend on word wrapping, text may be wrapped differently if user resizes window. Paragraphs are added when user presses Enter key, they do not depend on window width and word wrapping.
l0f
Posts: 2
Joined: Thu Aug 24, 2006 6:53 am

Post by l0f »

to [ergey Tkachenko]:t
hank you .
if the data like this:

aaaaaaaaa *bbbbbbbbb cccccccccc ddddddddd *eeeeeeeee

i'll get data between * and *
(
bbbbbbbbb cccccccccc ddddddddd
)
(Maybe include table ,Paragraphs...)

what should I do?
i use delphi .
please show me code .
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you need to copy all content of TRichView between '*' characters?
I.e. the code should search for the first '*', remember it location, search for the next '*', and copy fragment between them.
Post Reply