⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1313.html

📁 VB技巧问答10000例 VB技巧问答10000例
💻 HTML
字号:
<html>  <head>    <title>如何宣告自定形态变数为全域变数?</title>  </head>  <BODY BACKGROUND="" BGCOLOR="white" TEXT="black" LINK="blue" VLINK="#808080" ALINK="red">    <center>      <h1>如何宣告自定形态变数为全域变数?</h1>    </center><HR><p>Posted by <a href="mailto:lwg@ss20-1.tatung.com.tw">林文国</a> on November 18, 1997 at 03:35:53:<p>If I defined a user-defined type as<p>type ex_type<br>   varA as integer<br>   varB() as double<br>end type<p>Thus, we can define a variable C whose type is ex_type as <p>dim varC as ex_type<p>Now, my problem is how can I claim varC as a global variable. Assume there are one form and 3 modules in a project. They have filename as form.frm, a.bas, b.bas and c.bas, respectively. Each one<br>have some functions or procedures. My problem is that is it possible <br>that varC can be used in all form and modules?<br>I tried to define varC as global in a.bas, but it failed to be recognized in b.bas, c.bas and form,frm. That is to say, In a.bas, I define<p>golbal varC as ex_type<p>but b.bas can't recognie what is varC.varA.<p>Is it possible to define varC as a global variable?<br>Thank you very much....<br><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 1313--><!--top: 1315--><li><a href="1315.html"><b>当然可以!</b></a> 小吴 <i>16:47:47 11/18/97</i>(<!--responses: 1315-->0)<ul><!--insert: 1315--></ul><!--end: 1315--></ul><!--end: 1313--><br><HR><p></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -