HELP!! How to prevent Input of Alphabets in the code below >>>
Thanks Guys Problem Solved For That Part
--------------------------------------------------------- POST EDITED BY HanneSThEGreaT to reflect original question
---------------------------------------------------------
Do
StudentDetails(X).English = InputBox("Please Enter English Marks")
If StudentDetails(X).English < 0 Or StudentDetails(X).English > 100 Then
MessageBox.Show("Invalid input!""Please enter a value not More then 100 or Less then 0!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
Loop While (StudentDetails(X).English < 0 Or StudentDetails(X).English > 100)
Re: HELP!! How to prevent Input of Alphabets in the code below >>>
Originally Posted by Rush1991
Do
StudentDetails(X).English = InputBox("Please Enter English Marks")
If StudentDetails(X).English < 0 Or StudentDetails(X).English > 100 Then
MessageBox.Show("Invalid input!""Please enter a value not More then 100 or Less then 0!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
Loop While (StudentDetails(X).English < 0 Or StudentDetails(X).English > 100)
Rsuh, please don't just slpa code together and post it here, without any sort of explanation - hence the confusion. I can suggest use AND instead of OR
Originally Posted by Mur16
Assign the value of the InputBox to a string. Check the string to see if it IsNumeric.
Yes
Originally Posted by dglienna
and positive, and not HEX #F4, and not a fraction, and ...
Drop down is better, with ALL the choices
David, what are you smoking? You cannot be serious.
Re: HELP!! How to prevent Input of Alphabets in the code below >>>
Rush. Some more forum ethics here :
First, use the Report post feature only to report spam or insulting posts. That is all that will get removed.
Second, You have edited your first post in this thread, rendering this thread entirey completely and wholely useless.
This is a forum, where questions are asked and questions are answered. That is the whole definition of the word forum. Now, people having the same problem as you will never ever find their answers because of your selfishness. I will Go back, and edit your first post to reflect the original question again.
Please don't do it again, and please only use the report post feature to report spam
Bookmarks