Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How enumerate a text inside RTF box?

Status
Not open for further replies.

Robertge

Programmer
Jul 4, 2002
18
IT
Hi

I want to enumerate a text inside an rtf box

How can I releas it

Thank to everybody
 
Your question is not very clear, what do you mean by enumerate?
Guessing, you can get the unformated text using the .Text property of the rtf box. If you want to go through each line then the following gets each line into an array element
Dim arry() as string
Dim i as long
arry = Split (richtextbox.Text,vbcrlf)
Then you can use
For i = 0 to UBound(arry)
Do something with each line
next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top