14006.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 26 行
HTML
26 行
<html>
<head>
<title>Static后变数不能归零</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Static后变数不能归零</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by Gary on June 08, 1999 at 14:21:32:<p>
Form1呼叫Form2.Show后,Form2之Private sub 事件程序开始运算,此事件程序内设一Static A,但在Form2 Unload 后,若Form1再呼叫Form2.Show,这变数A仍由上次结束时最后之值为起始值而不会由零开始,请问如何归零?
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 14006-->
<!--top: 14013--><li><a href="14013.html">这个本来就是 Static 的基本功能啊!!!</a> <b>纪文和</b> <i>18:30:40 6/08/99</i>
(<!--responses: 14013-->0)
<ul><!--insert: 14013-->
</ul><!--end: 14013-->
</ul><!--end: 14006-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?