I pass a parameter to a subroutine, and in the subroutine, I check its 'typeof'

If the parameter is a string, but NULL, the Typeof comes up as Boolean, not
String.

Is this expected behaviour, or has something corrupted itself in my project?

VB.Net, Visual Studio 2003
--
David Gordon-Brown

Re: Should a (string) Null have a TypeOf = Boolean by Imran

Imran
Thu Dec 09 10:20:18 CST 2004

By NULL, do you mean Nothing? Could you post the relevant code of the method
and how you are passing the parameters?

Imran.

"David GB" <DavidGB@discussions.microsoft.com> wrote in message
news:F7691BFF-520E-4F0B-9EC1-E5729043F49F@microsoft.com...
> I pass a parameter to a subroutine, and in the subroutine, I check its
'typeof'
>
> If the parameter is a string, but NULL, the Typeof comes up as Boolean,
not
> String.
>
> Is this expected behaviour, or has something corrupted itself in my
project?
>
> VB.Net, Visual Studio 2003
> --
> David Gordon-Brown