新手求教关于模块程序调用的问题
这是一段在模块中检验是否输入数字的程序
Private Sub cb(KeyAscii As Integer)
Dim strValid As String
strValid = ".0123456789"
If KeyAscii > 26 Then
If InStr(strValid, Chr(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End If
End Sub
请问在FORM中的TEXT1_KeyPress文本框中如何调用该段程序?