converting c to vb/asp; isnull, isdbnull

  • Thread starter Thread starter et
  • Start date Start date
E

et

How do you know when to use isnull, and isdbnull and how do you use them? I
have the following expression in C:
DataRowView drv = dataItem as DataRowView;

if (drv != null)


How do I convert this to VB? By using intellisense, the only option I have
is isdbnull(drv), but it's not a database, and there is no option for
drv.isnull or isnull(drv). How would I do this is vb? Thanks and excuse my
ignorance:
 
Try :


If Not drv Is Nothing Then
' drv refers to a valid object, ' so your code can use it.

End If

Juan T. Llibre
===========
 

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