DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Checking for a specific data type.

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    Checking for a specific data type.

    [Originally posted by Fred C Jones]

    Hi there, this may sound silly to many of you, but i am wondering if there is a simple function that can check if a textbox contains a number or a string. The text box is called txtMyBox. Can anyone please help, Thankyou.

    Frederick Colin Jones

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Checking for a specific data type.

    [Originally posted by FreeVBCode.com]

    Use the IsNumeric Function:

    If isNumeric(text1.text) then
    'numeric
    Else
    'Non-numeric
    End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center