9637.html

来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 30 行

HTML
30
字号
<html>
  <head>
    <title>Return datatype in the public function of object module</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Return datatype in the public function of object module</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:pylin@bme.ym.edu.tw">fish</a> on January 28, 1999 at 16:07:35:<p>
  请问, 在物件类别模组中, 不能够以自订型态做为Public程序的传回值吗?<br>有没有办法可以克服?<p><br>  请看下列片段:<p>  在Module1 中,    Public Type POINTL<br>                         x As Long<br>                         y As Long       <br>                   End Type<p>  在Class1 中,     Private m_point as POINTL        <p>                   Property Get Point() as POINTL    <--无法通过编辑<br>                         Point = m_point<br>                   End Property<p>  结果编辑的时候就出现问题了, 因为VB会把POINTL 视为是<br>private的自订型态, 而private型态不可以当public的传回型态...<p>  不过, 在Module1中不是将POINTL宣告成Public 吗, 为何物件类别<br>会视为Private? <p>  有没有可以传递自订型态变数的方法??<p>  谢谢指导!<p>  (vb6.0, on Win 98)<p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9637-->
<!--top: 9640--><li><a href="9640.html">Re: Return datatype in the public function of object module</a> <b>Keven</b> <i>17:04:28 1/28/99</i>
(<!--responses: 9640-->1)
<ul><!--insert: 9640-->
<!--top: 9642--><li><a href="9642.html">Re: Return datatype in the public function of object module</a> <b>fish</b> <i>17:15:24 1/28/99</i>
(<!--responses: 9642-->0)
<ul><!--insert: 9642-->
</ul><!--end: 9642-->
</ul><!--end: 9640-->
</ul><!--end: 9637-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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