• Welcome to Valhalla Legends Archive.
 

Loops

Started by VeBee, August 05, 2006, 07:39 PM

Previous topic - Next topic

VeBee

How do i use a loop to count how many lines there are in a richtextbox?

topaz

Don't use a loop. You can probably store the text in the richtextbox in a string and split it by newline.
RLY...?

K

If you look at the members of a RichTextBox, you might notice that it has a "Lines" member.

If you further investigate this "Lines" member, you would notice that it is a string array, which means that you can use the "Length" property.


length = myRTB.Lines.Length



VeBee

thanks guys! but my dad just helped me do it.
now i can continue on with the easy part.

MyndFyre

Quote from: VeBee on August 05, 2006, 08:52 PM
now i can continue on with the easy part.
That *was* the easy part.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.