18415.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行

HTML
23
字号
<html>  <head>    <title>function could return more ... </title>  </head>  <body bgcolor="#FFFFFF" vlink="#808080">    <center>      <h1>function could return more ... </h1>    </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by wei on September 03, 1999 at 22:39:45:<p>In Reply to: <a href="18371.html">Re: call function □□return □□□□□□</a> posted by bmf on September 03, 1999 at 11:43:46:<p><br>dim FirstDay as Date<br>dim LastDay as Date<p>Private MyFunction(Byval InputDay as Date, ByRef FirstDay as Date, byRef LastDay as Date) as Boolean<br>'Calculate FirstDay and LastDay<br>'If succeed, return True, else return False<br>End Function<p>By passing variables by reference, a function could return as many values as you want.<br>Function(Byval Input, ByRef OutPut1, ..., ByRef OutPutN)<br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 18415--></ul><!--end: 18415--><br><hr size=7 width=75%><p></body></html>

⌨️ 快捷键说明

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