控件数组的定位问题 Index
我的text1是一个数组我要设置text1(2).text下面的设置所有的text1都受控了,该怎么弄?Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
Const xStr As String = "0123456789." '先声明一个常量,把想禁用或允许输入的内容赋值给它
KeyAscii = IIf(InStr(xStr & Chr(8), Chr(KeyAscii)), KeyAscii, 0)
End Sub