Groups | Blog | Home
all groups > visual studio .net general > september 2003 >

visual studio .net general : IsDBNull


Fred
9/30/2003 12:09:41 AM
Hi
I'am writing VB.NET code and have a problem with the
IsDBNUll function. When I write a test program in a vb
application form (inside Visual Studio)everything works
just fine, but when trying to use the same IsDBNull
function in a regular texteditor and compile it from the
MS-Dos prompt it shows an error message that IsDBNull is
not declared as a name??

I just don't know what to do!

Jim Blizzard [MSFT]
9/30/2003 4:50:29 PM
Hi Fredrik,

Thanks for posting to the newsgroup.

The IsDBNull function is part of the Microsoft.VisualBasic namespace. If
you look at the project properties in VS.NET (right click on the project in
the solution explorer, choose properties, click on "Imports" in the
left-hand side) , you'll see that that namespace is Imported for you
automatically by the development environment.

So if you want to create a similar program outside the VS.NET development
environment, you'll need to add "Imports Microsoft.VisualBasic" at the top
of your program.

Hope this helps,
bliz
--
Jim Blizzard, MCSD .NET
Community Developer Evangelist | http://www.microsoft.com/communities
Microsoft

Your Potential. Our Passion.

This posting is provided as is, without warranty, and confers no rights.

[quoted text, click to view]

AddThis Social Bookmark Button