Page 1 of 1

How to Select lines ?

Posted: Thu Aug 24, 2006 7:06 am
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 !

Posted: Thu Aug 24, 2006 10:42 am
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.

Posted: Fri Aug 25, 2006 12:51 am
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 .

Posted: Fri Aug 25, 2006 12:26 pm
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.