HELP!! How to prevent Input of Alphabets in the code below >>>
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Thread: HELP!! How to prevent Input of Alphabets in the code below >>>

Threaded View

  1. #1
    Join Date
    Dec 2012
    Posts
    4

    Question 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)

    -------------------------------------------------------------
    Last edited by HanneSThEGreaT; December 11th, 2012 at 03:59 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center