![]() |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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?
|
|
#3
|
||||
|
||||
|
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!!
|
|
#4
|
||||
|
||||
|
Glad you got it, marking as solved.
|
![]() ![]() |
| Tags |
| excited, issue, solved |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Duo gets another chance at life, but don’t be too excited | phillynews215 | Digital Scoop | 0 | 11-03-2025 01:10 PM |
| Morning Brief on the Pixel Watch 3 is way too brief and not too morning-y | phillynews215 | Digital Scoop | 0 | 10-06-2024 08:10 AM |
| [NEWS] Google Wallet will soon allow adding US passports but don't get too excited | phillynews215 | Just About Digital Community | 0 | 09-14-2024 05:04 PM |
| [NEWS] I Just Got My Touch Diamond FREE TOO | trellmix | Society Cell Talk | 8 | 01-12-2009 02:16 PM |
| [ ISSUE SOLVED ] HELP HELP HELP Destroyed HTC Touch HD | Lugia | HTC Touch Questions | 6 | 12-21-2008 12:29 PM |