#1
|
||||
|
||||
[ 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 |
#2
|
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?
|
The Following 2 Users Say Thank You to iamdasht19 For This Useful Post: | ||
#3
|
||||
|
||||
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!!
|
The Following User Says Thank You to fanaticny For This Useful Post: | ||
#4
|
||
Re: I got excited too soon VB help
Glad you got it, marking as solved.
|
The Following User Says Thank You to Superman369 For This Useful Post: | ||
Tags |
excited, issue, solved |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ISSUE SOLVED] [SOLVED] Trend Micro Office Scan Corporate Edition 7 | Venton | (Home) Pc Applications | 0 | 02-24-2006 11:15 AM |
[ISSUE SOLVED] [SOLVED] Steganos Safe Pro 2006 v8.0.11 + crack | Venton | (Home) Pc Applications | 0 | 02-24-2006 07:55 AM |
[ISSUE SOLVED] [SOLVED] RealPlayer v10.5 build 6.0.12.1483 + crack | Venton | (Home) Pc Applications | 0 | 02-24-2006 07:54 AM |
[ISSUE SOLVED] [SOLVED] Ilisoft PSP Video Converter Ver. 2.1.49.628b | Venton | (Home) Pc Applications | 0 | 02-13-2006 09:06 AM |
[ ISSUE SOLVED ] [SOLVED] Spy Emergency 2005 Ver. 2.0.320 | Venton | (Home) Pc Applications | 0 | 02-12-2006 06:28 PM |
Layout Options | Width:
Fixed
Contact Us -
SPJ Bulletin -
Archive -
Privacy Statement -
Terms of Service -
Top
| |