B
Bob Day
using VS 2003, VB.net...
Why is this valid:
dim x as datetime = nothing
but this is invalid:
public sub DoSomething (Optional byval x as datetime = nothing)
....code to do something
end sub
Nothing shows are error message that you cannot set a system object to
nothing.
Is there a work around for the sub problem? I must set it equal to
something since it is optional.
Thanks!
Bob Day
Why is this valid:
dim x as datetime = nothing
but this is invalid:
public sub DoSomething (Optional byval x as datetime = nothing)
....code to do something
end sub
Nothing shows are error message that you cannot set a system object to
nothing.
Is there a work around for the sub problem? I must set it equal to
something since it is optional.
Thanks!
Bob Day