doulostheou
Registered User.
- Local time
- Today, 10:22
- Joined
- Feb 8, 2002
- Messages
- 314
A friend of mine was trying to use the optional keyword in his function. I don't have any experience with it, so I was wondering if anyone could give him any advise on where he is going wrong. His syntax is something like below.
Function Test(x as Date, Optional y as Boolean)
If isMissing Then
....
ElseIf y = true Then
....
Else
....
End If
Apparently, isMissing never evaluates as true, even when he calls the function without a y variable.
Thanks in advance.
Function Test(x as Date, Optional y as Boolean)
If isMissing Then
....
ElseIf y = true Then
....
Else
....
End If
Apparently, isMissing never evaluates as true, even when he calls the function without a y variable.
Thanks in advance.