|
-
October 6th, 2001, 01:13 AM
#3
Re: Optional Keyword
Hi,
The syntax for typed optional arguments allows you to specify a default value. If the argument is omitted when the procedure is called, then the argument will have the default value. Here u didnt specify the default value. The default value for the integer when declared will be 0. So it will take it as 0.
If u are declaring the variable as variant then u can use the IsMissing() function to find out whether the procedure is called with the argument or not.
Have a nice day.
sunil.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|