Results 1 to 4 of 4

Thread: [RESOLVED] Input number in the textbox

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Resolved [RESOLVED] Input number in the textbox

    I want allow the decimal number or interger can be input in the textbox.No String data are allowed to be input in the textbox. I try to avoid the error input by the user using
    Code:
    ,
    and
    Code:
    .
    . I used desktop computer to input the value from Keyboard. Is there a difference code between input the value from keyboard for desktop computer and notebook?

  2. #2
    Frenzied Member
    Join Date
    Sep 2006
    Location
    Scotland
    Posts
    1,054

    Re: Input number in the textbox

    No difference. But if you want a good way of doing this have a look at Martin Liss' signature for the textbox control.

  3. #3
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: Input number in the textbox

    Also look at IsNumber() function in my signature. It may help.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Input number in the textbox

    There are also a whole lot of threads on this subject as this is a fairly common question. A search should turn up a wealth of information for you.

Posting Permissions

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



Click Here to Expand Forum to Full Width