4 Replies - 2474 Views - Last Post: 18 March 2013 - 04:25 AM Rate Topic: -----

#1 jayveeeeeee  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 66
  • Joined: 27-September 12

count wwor

Posted 16 March 2013 - 11:49 PM

can anyone can give me idea ,. how to count a word ..
i have to use two listbox in the one listbox will have the word length in other listbox2 will determine the occurence ... please just game idea how to do it ..

i cant give the code because i am doin it more better now ..
Is This A Good Question/Topic? 0
  • +

Replies To: count wwor

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: count wwor

Posted 17 March 2013 - 05:17 AM

String.Length (MSDN)
Was This Post Helpful? 0
  • +
  • -

#3 jayveeeeeee  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 66
  • Joined: 27-September 12

Re: count wwor

Posted 18 March 2013 - 03:36 AM

i know its length ,,, i am doing how to count a repeated word can u give me idea . .
Was This Post Helpful? -1
  • +
  • -

#4 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3359
  • View blog
  • Posts: 11,373
  • Joined: 12-December 12

Re: count wwor

Posted 18 March 2013 - 04:13 AM

View Postjayveeeeeee, on 18 March 2013 - 03:36 AM, said:

i know its length ,,, i am doing how to count a repeated word can u give me idea . .

You need to describe your question more clearly if you want assistance.

If you have a string then you can use Split() to split it into a string array (of words) and loop through this array comparing, and counting, the word you are looking for. Or you can use IndexOf() repeatedly to find the occurrences of the word in the string.
Was This Post Helpful? 0
  • +
  • -

#5 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3359
  • View blog
  • Posts: 11,373
  • Joined: 12-December 12

Re: count wwor

Posted 18 March 2013 - 04:25 AM

Or there is the regex approach as someone provided for you in your other post:

http://www.dreaminco...9&#entry1821649
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1