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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top