📄 17177.html
字号:
<html> <head> <title>Re: To: C.T.Wang, 谢谢您回答有关Set FormName = Nothing之问题!再请教......</title> </head> <body bgcolor="#FFFFFF" vlink="#808080"> <center> <h1>Re: To: C.T.Wang, 谢谢您回答有关Set FormName = Nothing之问题!再请教......</h1> </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by Fai on August 13, 1999 at 11:07:53:<p>In Reply to: <a href="17153.html">To: C.T.Wang, 谢谢您回答有关Set FormName = Nothing之问题!再请教......</a> posted by 新手 on August 12, 1999 at 23:49:55:<p>: 请问 Dim F1 as form1, Dim F2 as form2要在何处宣告?我试过了,好像只有在一般模组中用Public才不产生错误。另外如原程式码中的form1.show or form2.hide等等是否要改成F1.show or F2.hide?还是保持原名仍不会产生不可预期的错误?<p>The method to declare form is wrong!<br>If you want declare some variable to use, you should declare as follow:<br>Dim F1 as Form<br>Dim F2 as Form<p>The following code is set the value of F1,F2.<br>If the value is object, that you must add "Set" at the front of declaration<br>Set F1=form1<br>set F2=form2<p>Then, you can use<br>F1.show<br>F2.show<p>if you only want to show Form1 or Form2, then you no need <br>to declare, just use<br>Form1.show<br>Form2.hide<br>is OK<br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 17177--><!--top: 17185--><li><a href="17185.html">非常感谢您!练习过了!为确定使用正确请告知......</a> <b>新手</b> <i>12:09:51 8/13/99</i>(<!--responses: 17185-->2)<ul><!--insert: 17185--><!--top: 17194--><li><a href="17194.html">Re: 非常感谢您!练习过了!为确定使用正确请告知......</a> <b>Fai</b> <i>14:11:36 8/13/99</i>(<!--responses: 17194-->1)<ul><!--insert: 17194--><!--top: 17226--><li><a href="17226.html">因为是在练习各种方法,并不是一定要这样宣告。谢谢!</a> <b>新手</b> <i>22:09:11 8/13/99</i>(<!--responses: 17226-->0)<ul><!--insert: 17226--></ul><!--end: 17226--></ul><!--end: 17194--></ul><!--end: 17185--></ul><!--end: 17177--><br><hr size=7 width=75%><p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -