|
-
Nov 2nd, 2000, 08:43 AM
#1
Thread Starter
Member
Can anyone tell me the range of ascii values that are numbers???
-
Nov 2nd, 2000, 08:45 AM
#2
_______
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 2nd, 2000, 08:48 AM
#3
_______
<?>
'easy way to get an ascii of your keypress
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
MsgBox KeyAscii
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 2nd, 2000, 08:49 AM
#4
Thread Starter
Member
How about this?
Do you know of any problems the following could cause?
'Test for numeric ascii values?
If Not IsNumeric(Chr(KeyAscii))
-
Nov 2nd, 2000, 09:09 AM
#5
_______
<?>
None if it's in the right event..ie Keypress as below
However, that does not allow for backspace or decimals if
needed.
'allow only numeric data in a textbox
Option Explicit
Private Sub Text1_KeyPress(KeyAscii As Integer)
If Not IsNumeric(Chr(KeyAscii)) Then
KeyAscii = 13
Beep 'if not numeric then beep
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|