954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Please help!

My professor wants the following:

1. Write a program to correct a text including several paragraphs
a. The first line in each paragraph must be indented
b. The first character in every sentence must be capitalized, paragraphs will be indented with "CRLF" code

c. Initial text and output must be displayed in two different textboxes
d. Your program must include "word count" function
e. Your program must be able to correct a variable number of paragraphs

I don't even know where to start with this, I have one multiline textbox with a couple paragraphs in it, and under a button i have to do all of the things he asks to another textbx. Any help at all would be great.

MoldingHam
Newbie Poster
1 post since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

Please post your code and we'll try to add what we can to it.
For now, i give you what I think would work.

you can parse text using Regular Expression (RegEx).
You are going to have to keep count of all of the words so use that as work count function.
Put everything into an array and move them to the second textbox one at a time and apply a,b.

bluehangook629
Posting Whiz in Training
204 posts since Dec 2009
Reputation Points: 11
Solved Threads: 14
 

And you won't indent paragraphs with CRLF. You will indent with vbTab.

Reverend Jim
Posting Shark
Moderator
1,169 posts since Aug 2010
Reputation Points: 253
Solved Threads: 159
 

>>b. The first character in every sentence must be capitalized,...

With TextBox1
            .Text = StrConv(.Text, VbStrConv.ProperCase)
        End With

>>d. Your program must include "word count" function

With TextBox1
            MsgBox(.Text.Split(" "c).Length.ToString & " totally.noobed words in this WordsCount", MsgBoxStyle.Information)
        End With

>>I don't even know where to start with this...
Hope this helps.:)

codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
 

I'm in the same class with this guy, thanks so much codeorder, but we need help with the other stuff now!

Secone
Newbie Poster
1 post since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

>>I'm in the same class with this guy, thanks so much codeorder, but we need help with the other stuff now!
.only "we"? hmm., will think about it:D, though in the meantime, start your own dam.n.thread. Return ".thanx":)

codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: