Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: More VB Help...  (Read 811 times)

0 Members and 1 Guest are viewing this topic.
More VB Help...
« on: October 16, 2006, 11:43:42 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
I have a combo box, and I see it is editable (you can enter abc fine). I want to know how to make sure a value is an integer like

If cboTime.Text = IntValueType =  False Then
MsgBox "Phail noob. Int only lawl."
End If
« Last Edit: March 01, 2007, 01:16:10 am by 4Sword »
Logged
the a o d c

Jed

Re: More VB Help...
« Reply #1 on: October 16, 2006, 12:57:11 pm »
Hummm Look up isnumeric in the object explorer by hitting f2. Not sure on the syntax.
Logged

Dayjo

shut the fuck up donny.
Re: More VB Help...
« Reply #2 on: October 16, 2006, 01:29:58 pm »
  • hungry..
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3602
As Jed stated, you should be able to use IsNumeric like so:

Code: [Select]
If Not IsNumeric(cboTime.Text) Then
     MsgBox "Phail noob. Int only lawl."
End If
Logged
  • My Blog
Re: More VB Help...
« Reply #3 on: October 17, 2006, 02:57:21 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
Thanks to both of you.
Logged
the a o d c
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.06 seconds with 45 queries.