# 我只知道这一种的...

Posted by 笋子 on December 03, 1998 at 00:44:17:

In Reply to: VB有InputMask吗? posted by VB小学生 on December 01, 1998 at 05:45:07:

: VB有InputMask吗?

Private Sub Text1_KeyPress(KeyAscii As Integer)
If (KeyAscii < Asc("0") Or KeyAscii > Asc("9") _ And KeyAscii <> 8 Then
Beep
KeyAscii = 0
End If
End Sub
可以检验是否为数字输入....其他的就要自己变化啰...

Follow Ups:

- 上面的那位"vb新手"看过来哦 笋子 03:41:38 12/04/98 (1)
  - 谢啦! VB小学生 00:46:02 12/05/98 (0)