📄 13531.html
字号:
<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 <a href="mailto:jonnycjc@mail.ttn.com.tw">Jonny</a> on May 28, 1999 at 20:06:01:<p>
In Reply to: <a href="13467.html">Re: 不解 ?这问题应该没有很复杂吧!</a> posted by job on May 27, 1999 at 13:49:13:<p>
: : : : 我知道 TextBox.setfocus 但这要知道 TextBox的Name,<br>: : : : 可不可以不用知道就可以知道前一个TextBox的Name,<br>: : : : 这样一来便可以回到上一个TextBox而不用知道它的Name了<br>: : : : 有能可以回答吗?谢谢!<p>: : : 我劝你不要花心思在这上面,以免增加程式的复杂度和自己的麻烦,如果,觉的物件太多,就把相同物件作成阵列<p>: : 请说明,我不是很清楚~<br>: : 真得没有解答吗?<p>: text1(index-1).setfocus回到上一个text<br>: 不知道符合你所想要的吗?<p><br>有二个TextBox => Text1,Text2<p>Private Sub Text1_LostFocus()<br> If screen.ActiveControl.text = "" then <== 判断上一个TextBox.text 若是空值时,便将Focus设回前一个TextBox<br> screen.ActiveControl(Index -1).setfocus<br> End if<br>End Sub<br>我想写的如上,不知正确的写法为何,请指教...<p><br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 13531-->
<!--top: 13593--><li><a href="13593.html">有问题</a> <b>小翰</b> <i>04:31:25 5/31/99</i>
(<!--responses: 13593-->1)
<ul><!--insert: 13593-->
<!--top: 13635--><li><a href="13635.html">还是很感谢你! 因Form上规定,不能用Text 阵列 So ...,希望能有方法解决</a> <b>Jonny</b> <i>21:51:11 5/31/99</i>
(<!--responses: 13635-->0)
<ul><!--insert: 13635-->
</ul><!--end: 13635-->
</ul><!--end: 13593-->
</ul><!--end: 13531-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -