Using InputBox- Numbers only- Help?

Need a little help here. I'm using an input box. I only want a numerical input. No letters. How do I make sure it only accepts numbers? Is this possible?

Here's the script:

Sub object_onscriptenter
object.Text= object.PersistStorage("newtext")
End Sub

Sub Object_OnLbuttonup(x,y,dragged)
Dim Input
If Not dragged Then
Input = InputBox("Enter seconds 1-5")
If Input < 6 Then
If Input > 0 Then
object.PersistStorage("newtext")= Input
Object.Text= object.PersistStorage("newtext")
End If
End If
End If

End Sub


Thanks.
1,599 views 4 replies
Reply #1 Top
Look for DX Textbox object by Thomas Thomassen. Get the second version as (I believe) he has an option for numeric only in the script. Sorry can't be of more help at the moment. Still fixing my registry.

Edit: Oops! Saw you've got your answer in the other forum. Sorry 'bout that.
Reply #2 Top
I was so confused . . . I *KNEW* I had read this before.   
Reply #3 Top
I was so confused . . . I *KNEW* I had read this before.


LOL! Sorry for the confusion. Whenever I have an odd question I usually like to post on both forums. It covers more ground and gets better results.
Reply #4 Top
o_O
You had me there as well, I saw teh starting post was teh same, but the follow ups where completely different. Rattled my fragile mind.