datAdrenaline
AWF VIP
- Local time
- Today, 07:57
- Joined
- Jun 23, 2008
- Messages
- 697
What I took the thread to mean was as follows.
say you have a function
function funccheckdate(startdate as date, optional enddate)
rereading the thread seems to imply that the function header as above is fine
ismissing(enddate) will return true or false, depending whether the argument was passed
BUT - say you incorrectly put
function funccheckdate(startdate as date, optional enddate as date)
then the very fact that you inadvertently included the type qualification, means then this can NEVER return true for ismissing
Yes ... that is correct ... but I would say "included a non-variant type qualification" .. because you can include the type qualification of Variant.
function funccheckdate(startdate as date, optional enddate as variant)
And IsMissing() will function as expected.
And yes to some degree this is splitting hairs, but if I were just starting VBA, the ambiguities need to be removed in the commentaries.
-----
Note that as I re-read some of my reply's, it seems they can be interpreted as if I am trying to provoke negativity by being direct! ... Please know that I am not trying to do anything of the sort! ... Just talking technical
