dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: set field box

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

    set field box

    [Originally posted by Kenny]

    Hey people!

    I have 4 field boxes, and four command
    How do I set that when I press Button Command #1 and it do a basic calculation, by
    text1.text / text2.text that in these two field only numbers.. if they have letters.. it will popup a message said "Only numbers no variables" stuff like that..

    I know the first part.. not the second or third.. is it like DIm something?? and msgbox??

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

    Re:set field box

    [Originally posted by bobbynad]

    Use Isnumber or isinterger

    eg:

    if isnumber(text1) and isnumber(text2) then

    else
    msgbox "Please type number"
    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