|
-
Nov 24th, 2007, 05:20 PM
#1
Thread Starter
New Member
....
Last edited by YHaney; Nov 24th, 2007 at 09:52 PM.
-
Nov 24th, 2007, 06:02 PM
#2
Fanatic Member
Re: How can I display text in resultTextBox?
You would have to check if the values are invalid.
Try the IF statement, or the Select Case statement.
vbcode Code:
'Create Error Messege Variable
Dim ErrMsg as String
If Year < 1950 or Year > 2050 then
ErrMsg = "Please enter value from 1950-2050"
else
ErrMsg = ""
End If
vbcode Code:
'Create errormessage variable
Dim ErrMsg as string
select case year
case <1950 or >2050
ErrMsg="Please enter a date between 1950 and 2050"
case else
'set value to "" so no messege
ErrMsg = ""
'do nothing, the value is inbetween
end case
Please RATE posts, click the RATE button to the left under the Users Name.
Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.
"As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood
-
Nov 24th, 2007, 07:14 PM
#3
Thread Starter
New Member
Re: How can I display text in resultTextBox?
Last edited by YHaney; Nov 24th, 2007 at 09:34 PM.
-
Nov 24th, 2007, 07:51 PM
#4
Fanatic Member
Re: How can I display text in resultTextBox?
I am at work and might not able able to fully answer you.
vb Code:
Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button.Click
'Put code here to get information from the text boxes.
'Also put code here to check the text boxes.
'Put code here to check the Interest to make sure it is >0 and <100, or >=0 and <=100
End Sub
Please RATE posts, click the RATE button to the left under the Users Name.
Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.
"As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood
-
Nov 24th, 2007, 09:56 PM
#5
Thread Starter
New Member
-
Nov 24th, 2007, 10:08 PM
#6
Re: ....
Please don't just remove everything you posted. The idea of this forum is to help people. Now those who have the same question as you will have to ask it again instead of just reading this thread.
-
Nov 24th, 2007, 11:19 PM
#7
Re: ....
A selfish forum member? Sounds like an oxymoron..
-
Nov 25th, 2007, 12:46 AM
#8
Re: ....
Thread closed since it isn't of any use any more...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|