I need help


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: I need help

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

    I need help

    [Originally posted by Kristine Wilton]

    On a form that I'm working on, you enter a number of hours in the text box and it returs a commision. what I need is to not let the employee enter any number over 160. Any help that you could give me would be appreciated

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

    Re:I need help

    [Originally posted by Marc Cramer]

    Hello...

    try
    if CINT(VAL(textbox.text))>160 then
    msgbox "Only numbers under 161 Allowed"
    textbox.setfocus
    end if

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

    Re:I need help

    [Originally posted by ali]

    use IsNumeric( val ) to check for valid numbers
    then convert it into number and check the value

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

    Re:I need help

    [Originally posted by Jehanzeb Navid]

    hi! i think u can use the max length code to make the numbers up to 160.
    jayzee

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