Error - template LAYOUT-DATA-WRAPPER not found

A configuration error was detected in the CGI script; the LAYOUT-DATA-WRAPPER template could not be found.

Error - template STYLE-SHEET not found

A configuration error was detected in the CGI script; the STYLE-SHEET template could not be found.

Error - template SUB-TOP-BANNER not found

A configuration error was detected in the CGI script; the SUB-TOP-BANNER template could not be found.
Subject:
From:
A&C Thompson <[log in to unmask]>
Reply To:
PCSOFT - Personal Computer software discussion list <[log in to unmask]>
Date:
Thu, 8 Feb 2001 19:30:04 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
----- Original Message -----
From: "proto type"
Subject: [PCSOFT] Visual Basic Problem


> Dear list members,
> can anyone tell me how to verify if a numeric value was entered by the user
> to a textbox on visual basic programs, please?
> For example, I'm prompting the user to enter an integer number in a text box
> on the form and I want to avoid the input of other characters. if the user
> enters non numeric value, i want it to be detected and prompt the user
> again. I use VB6 learning edition.
> thanks in advance for any response,
> ahror rahmedov
--------------------

Use a variation of this under the Lost_Focus event for the textbox in question:

   If IsNumeric(txtName.Text) = False Then
         Call MsgBox("Invalid input", vbInformation + vbOKOnly, "Please enter numbers only")
         txtName.Text = vbNullString
            Else
            txtName.Text = txtName.Text

  End If
----------------------------------------
If you need further help, you can email me directly. Good luck

Alan Thompson

              The NOSPIN Group is now offering Free PC Tech
                     support at our newest website:
                          http://freepctech.com

ATOM RSS1 RSS2

LISTSERV.ICORS.ORG Secured by F-Secure Anti-Virus CataList Email List Search Powered by LISTSERV