Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBNull and web services 1

Status
Not open for further replies.

mancroft

Programmer
Oct 26, 2002
267
GB
DBNull and web services

In order to handle database null values in VB.NET you use DBNull.

Will DBNull also work with data returned from web services?

I assume that the answer is yes.

 
mancroft:

Yes, you use DBNull the same on a web service, depending whether you are pushing or pulling. Here is a snippet on how I handled a push back to the web site.

==============================
If IsDBNull(UpRS(1).Value) Then
Exit Do
Else
Order.StatusCode = UpRS(1).Value
End If
==============================

I hope this helps.

Ron

Ron Repp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top