Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating an "Index" report based on user entered text - VB 2010
    text
    copied!<p>I have been instructed with what I would call creating an Index.</p> <p>Basically, the user is expected to be able to right some text in an empty text box. At the click of a button, the output is expected to show an alphabetically sorted list of the words entered, as well as a line number at which they appear.</p> <p>so for example:</p> <p>One fish <br> two fish <br> red fish <br> blue fish. <br> <br> Black fish<br> blue fish <br> old fish <br> new fish. <br> <br> This one has <br> a little star. <br> <br> This one has a little car.<br> Say! What a lot <br> of fish there are. </p> <p>A 12, 14, 15 <br> ARE 16 <br> BLACK 6 <br> BLUE 4, 7 <br> CAR 14 <br> FISH 1, 2, 3, 4, <br> HAS 11, 14 <br> LITTLE 12, 14 <br> LOT 15 <br> NEW 9 <br> OF 16 <br> OLD 8 <br> ONE 1, 11, 14 <br> RED 3 <br> SAY 15 <br> STAR 12 <br> THERE 16 <br> THIS 11, 14 <br> TWO 2 <br> WHAT 15 <br></p> <p>This text was used with reference from a Java document for creating an Index and I followed it through and the expectations are the same as mine, just in another language. </p> <p>I'm working on paper at the minute to work out an algorithm but I'm getting a little frustrated with my efforts!</p> <p>A couple of more requirements:</p> <p>The maximum amount of line number occurrences is 4 so even if a word occurs on 10 different lines, it should only be referenced 4 times</p> <p>Grammar must be ignored so words which contain !.,? must be removed Words which are spelt :HeLlO must be spelt: hello</p> <p>Thank you in advanced for the help</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload