Should a (string) Null have a TypeOf = Boolean

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
By NULL, do you mean Nothing? Could you post the relevant code of the method
and how you are passing the parameters?

Imran.
 
Back
Top