# 请各位高手帮忙！！

Posted by 小毛 on November 03, 1998 at 23:03:19:

小弟刚开始学习VB，搞不清楚有关"选择性引数(Optional)"的意思，
请各位高手帮忙解释一下下！！
底下有一段程式码，执行时会出现"必须是叙述句结尾"的错误讯息，
请各位高手帮忙Debug一下，谢谢！！
Dim strName As String
Dim varAddress As Variant

Sub ListText (Optional x As String, Optional y _
As Variant)
List1.AddItem x
List1.AddItem y
End Sub

Private Sub Command1_Click ()
strName = "yourname"
Optional
varAddress = 12345 ' 两个引数都有提供。
Call ListText (strName, varAddress)
End Sub

Follow Ups:

- Re: 请各位高手帮忙！！ Kent 23:36:42 11/03/98 (0)