Hello
Guest
, please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length.
ZFGC
>
Resources
>
Coding
>
More VB Help...
« previous
next »
Pages: [
1
]
Go Down
Print
Author
Topic: More VB Help... (Read 816 times)
0 Members and 1 Guest are viewing this topic.
AoDC
More VB Help...
«
on:
October 16, 2006, 11:43:42 am »
Reputation: +1/-0
Offline
Gender:
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
Gender:
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
www.dayjo.org
AoDC
Re: More VB Help...
«
Reply #3 on:
October 17, 2006, 02:57:21 am »
Reputation: +1/-0
Offline
Gender:
Posts: 4588
Thanks to both of you.
Logged
the a o d c
Print
Pages: [
1
]
Go Up
« previous
next »
ZFGC
>
Resources
>
Coding
>
More VB Help...
Contact Us
|
Legal
|
Advertise Here
2013 © ZFGC, All Rights Reserved