![]() |
[ ISSUE SOLVED ] I got excited too soon VB help
Im really sorry but i didn't make it work completely, got excited too soon, so here it is again. Well I can validate txtAge.Text now, but im also required to then take the input and assign it to a different variable as Integer, here's what I have:
Dim ageCheck As Boolean Dim isNum As Integer ageCheck = IsNumeric(txtAge.Text) isNum = Integer.Parse(txtAge.Text) "VB doesn't like this line" If (ageCheck = False) Then lblResults.Text = "Please correct your age" ElseIf (isNum < 21) Then lblResults.Text = txtName.Text & ", you are a youngster!" ElseIf (isNum >= 21 And isNum < 40) Then lblResults.Text = txtName.Text & ", you are an adult." ElseIf (isNum >= 40) Then lblResults.Text = txtName.Text & ", you are over the hill!" End If |
Re: I got excited too soon VB help
mmmmm. havent been working with visual basic too much lately....... i know tere are mad support forums out there for it that would be able to help you more than i could..... and your not getting any sytax errors are you?
|
Re: I got excited too soon VB help
Im wansn't running it stricktly thru BV.net, i was getting errors while trying to load the website and that was giving me xml like error which im not familiar with yet, but im good now, i just needed nested if/else statements. Thanks!!
|
Re: I got excited too soon VB help
Glad you got it, marking as solved.
|
| All times are GMT -4. The time now is 12:39 PM. |
Powered by vBulletin® Version 3.8.14
Copyright ©2000 - 2026, vBulletin Solutions Inc.
POWERED BY PHILLYFINESTSERVERSTAT FOR WCKEDIDEN|- NEXTELELITE| - PPCTHEME| - IDENINSIDER