I am trying to create a For Each Loop in my program.
I have 20 lines worth of data in my RichTextBox, and I want to apply a ruleset as follows: Code:
The 20 lines I have are IT related issues, e.g 'The printer has a paper jam'
The Classify Textbox displays the class the issue relates to, then I have some code to send it to a text file for storage.
Each of the 20 lines are different classes, however can anyone help me with a For Each Loop statement to read the first issue classify it send it, then repeat 20 times, so that my text file has 20 rows of data, but each issue has been classified due to my ruleset in the code above?
I have 20 lines worth of data in my RichTextBox, and I want to apply a ruleset as follows: Code:
VB.NET:
If Textbox1.Text.Contains(Printer(13))
Then ClassifyTextbox.Text = "Printer - Jam"
ElseIf Textbox1.Text.Contains(Printer(9)) Then ClassifyTextBox.Text = "Printer - Toner"
ElseIf Textbox1.Text.Contains(Printer(i)) Then ClassifyTextBox.Text = "Printer"
The 20 lines I have are IT related issues, e.g 'The printer has a paper jam'
The Classify Textbox displays the class the issue relates to, then I have some code to send it to a text file for storage.
Each of the 20 lines are different classes, however can anyone help me with a For Each Loop statement to read the first issue classify it send it, then repeat 20 times, so that my text file has 20 rows of data, but each issue has been classified due to my ruleset in the code above?