If e.KeyChar Chr(8) And Not e.KeyChar Like "#" And Not e.KeyChar Like "[,.-]" Then e.KeyChar = ""求问这句话的意义,为什么这句话输了以后就能够输数字而不能输字符了呢?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 01:53:59
Ife.KeyCharChr(8)AndNote.KeyCharLike"#"AndNote.KeyCharLike"[,.-]"Thene.KeyChar=""求问这句话的意义,为什么这句话输了以后

If e.KeyChar Chr(8) And Not e.KeyChar Like "#" And Not e.KeyChar Like "[,.-]" Then e.KeyChar = ""求问这句话的意义,为什么这句话输了以后就能够输数字而不能输字符了呢?
If e.KeyChar Chr(8) And Not e.KeyChar Like "#" And Not e.KeyChar Like "[,.-]" Then e.KeyChar = ""
求问这句话的意义,为什么这句话输了以后就能够输数字而不能输字符了呢?

If e.KeyChar Chr(8) And Not e.KeyChar Like "#" And Not e.KeyChar Like "[,.-]" Then e.KeyChar = ""求问这句话的意义,为什么这句话输了以后就能够输数字而不能输字符了呢?
这句话的意思是,如果输入的字符【e.keychar】不是空格【chr(8)】且不是数字【not ……Like "#"】且不是逗号、小数点、减号【not …… Like "[,.-]"】那么就忽略这次输入的字符【e.KeyChar = ""】