Quantcast
Channel: How to check for a Null value in VB.NET - Stack Overflow
Viewing all articles
Browse latest Browse all 11

How to check for a Null value in VB.NET

$
0
0

I have this:

If String.IsNullOrEmpty(editTransactionRow.pay_id.ToString()) = False Then    stTransactionPaymentID = editTransactionRow.pay_id 'Check for null valueEnd If

Now, when editTransactionRow.pay_id is Null Visual Basic throws an exception. Is there something wrong with this code?


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images