Ok Thanks a lot for your help. I have got a solution but its very long as like I said there will be 30 different inputs. So this is how I got it to work is there any other way to make this simpler.
Private Sub btnCheck_Click( ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnCheck.Click
Dim TotalAns As Integer
TotalAns = 0
If txtRep1.Text = "A"...
User Profile
Collapse
-
Sorry about that The boolean was included as that was the error I got from the source. It said "Option Strict On disallows implicit conversions from 'Boolean' to 'String'."
Your answer works well. But only for one of the text boxes. I have 2 different text boxes at the minute and at the end I will need about 30 different user inputs.
textrep1
textrep2
textrep3 ... etc.
So I need...Leave a comment:
-
Visual Basic.Net Help Please
How to check textbox inputs
--------------------------------------------------------------------------------
Hi I relatively new to VB.Net. And I have to create a sort of quiz type application.
There are a few Text boxes where the user will input their answers. I want the code to check the users input and compare with set answer. If correct add 1 to a total and at the end display the total correct answers. I have a code... -
How to check textbox inputs
Hi I relatively new to VB.Net. And I have to create a sort of quiz type application.
There are a few Text boxes where the user will input their answers. I want the code to check the users input and compare with set answer. If correct add 1 to a total and at the end display the total correct answers. I have a code but I keep getting Errors like cannot convert boolean to integer etc. Any help please..
this is my code at the moment...
No activity results to display
Show More
Leave a comment: