D David Browne Dec 3, 2003 #2 Jeff said: What is the best way to set an optional date parameter to a sub? Click to expand... No really good way. Here are your options: 1 Use an overload instead. 2 Default it to Date.MinValue, and then remember to check downstream. 3 Type it as object and send real Date or Nothing, or perhaps DbNull.Value. David
Jeff said: What is the best way to set an optional date parameter to a sub? Click to expand... No really good way. Here are your options: 1 Use an overload instead. 2 Default it to Date.MinValue, and then remember to check downstream. 3 Type it as object and send real Date or Nothing, or perhaps DbNull.Value. David
J Jeff Dec 3, 2003 #3 Using an Overload is a good idea, Thanks! BTW you can't use Date.MinValue because it is not a constant.
Using an Overload is a good idea, Thanks! BTW you can't use Date.MinValue because it is not a constant.
D David Browne Dec 3, 2003 #4 Jeff said: Using an Overload is a good idea, Thanks! BTW you can't use Date.MinValue because it is not a constant. Click to expand... In VB, the constant #12:00:00 AM# will give you Date.MinValue. David
Jeff said: Using an Overload is a good idea, Thanks! BTW you can't use Date.MinValue because it is not a constant. Click to expand... In VB, the constant #12:00:00 AM# will give you Date.MinValue. David