# Re: 我就帮小吴回答了 ^_^

Posted by 头儿 on July 14, 1999 at 09:39:05:

In Reply to: 我就帮小吴回答了 ^_^ posted by Sephiroth on July 12, 1999 at 14:34:30:

: 主要是 Optional 这个 Keyword, 看一个例子:

: Public Sub Move2(Optional iLeft As Integer = 3000, Optional iTop As Integer = 2000, Optional iWidth As Integer = 4800, Optional iHeight As Integer = 3600)

: Form1.Move iLeft, iTop, iWidth, iHeight

: End Sub

: Optional 是选择性引数, 等号后则是预设值. 只要注意不要把 Optional 的引数放在 ByVal/ByRef
: 的一般引数前面就可以了

Thank You !!

Follow Ups: