Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Short

 
Bart Wilson
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you check for null for Short type?
I can't use 0 (zero).
???
Thanks
 
Chad McGowan
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Short s;
if (s == null)
Is this what you are asking?
 
Bart Wilson
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes if it equals null I want to equal something other than null.
Thanks
Originally posted by Chad McGowan:
Short s;
if (s == null)
Is this what you are asking?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic