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.