473,471 Members | 1,684 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

converting c to vb/asp; isnull, isdbnull

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:
Nov 19 '05 #1
1 3179
Try :
If Not drv Is Nothing Then
' drv refers to a valid object, ' so your code can use it.

End If

Juan T. Llibre
===========
"et" <ea*************@yahoo.com> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
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:

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: alien2_51 | last post by:
At some point after running this report the "Wholesale Price" column data type in the excel spread sheet changes from Currency to General... It seems to ba around the 300th or so row but varies......
9
by: wiredog | last post by:
I am struggling rewriting my query from MS Access' IIF, Then to SQL Servers TSQL language. I am hoping some one can give me some guidance. I believe I have the first portion of the query correct...
3
by: Carl Howarth | last post by:
Hello again everyone..... I'm a real pain and keep posting re the same thing, but it is possibly the most frustrating issue I've come across. Please see my original post - can anybody think of a...
4
by: D. Shane Fowlkes | last post by:
For some reason, I'm being told to declare "IsNull". Surely I'm doing something wrong. I'm basically seeing if someone clicked a link which passes a variable in the querystring like...
3
by: Paul D. Fox | last post by:
I have this code snippet below where I'm loading all the labels based upon the retrieved record from the DataReader. Unfortunatley, some of the values are null, so I can't explicitly set the...
4
by: jimm.sander | last post by:
Hello, Problem: Im using isnull() in vbscript to determine if a field returned from a ado object call is in fact null. The problem is when I use isnull in anything other than a response.write()...
5
by: Mukesh | last post by:
Hi i want to use AJAX.net in my Existing Application I have already installed the ajax .net ..net 3.0 and using VS 2005 in the old application i have added a new web form then script manager...
7
by: RSH | last post by:
I am struggling with a concept I'm not really finding a lot of in depth articles on but Im sure others have had similar issues. What is the best practice when it comes to persisting custom...
3
by: adz1809 | last post by:
I'm trying to update a record using "System.Data.SqlClient" in asp.net. Here is my code: <%@ import namespace="System.Data" %> <%@ import namespace="System.Data.SqlClient" %> <Script...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.