11010.html
来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>Re: 急件..请问两个问题</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 急件..请问两个问题</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by Danice on March 16, 1999 at 16:30:10:<p>
In Reply to: <a href="11009.html">急件..请问两个问题</a> posted by sdy on March 16, 1999 at 16:11:55:<p>
1. 写在text_keypress内<br> glb_numberonly keyascii<br> 其中 glb_numberonly 为一 sub, 写法如下<br> Public Sub glb_numberonly(KeyAscii As Integer)<br> If KeyAscii = vbKeyReturn Then<br> SendKeys "{tab}"<br> KeyAscii = 0<br> End If<br> If KeyAscii < vbKey0 Then<br> Exit Sub<br> End If<br> If KeyAscii > Asc("9") Or KeyAscii < Asc("0") Then<br> MsgBox "只可输入0到9", , "错误讯息"<br> Beep<br> KeyAscii = 0<br> End If<br> End Sub<p>2. 可以写在 text2_lostfocus 内<br> if lenb(trim(text1.text)) > 0 and lenb(trim(text2.text))> 0 then<br> command.enabled=true<br> endif<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 11010-->
</ul><!--end: 11010-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?