PDA

Click to See Complete Forum and Search --> : how can I check to see if something is null?


MrPolite
Apr 25th, 2002, 06:59 PM
in vb6 there was Null and IsNull that we could use, but I dunno how to it in VB.Net. For example how can I check to see if the image of a picturebox is null or not?

thanks in adance:)

programatix
Apr 25th, 2002, 08:42 PM
Try using "Is Nothing".

I'm not sure as I'm not at my computer.

Thelonius
Apr 26th, 2002, 08:51 AM
For datatypes you can use ex: if myString = System.DBnull.Value then....