How about checking the count of the rows? But it seems like checking to see
if it is null would work, what's happening?
-- Justin
-----Original Message-----
From: Keith R. Pinster [mailto:keith.pinster@xxxxxxxxx]
Sent: Monday, December 06, 2004 7:10 PM
To: padnug@xxxxxxxxxxxxxxx
Subject: [padnug] Testing a DataTable to see if it is assigned (C#)
What is the syntax for the if statement to see if a DataTable has
been assigned?
i.e.
if (myDT == null)
{
//Do something
}
"myDT == null" isn't right, but what is?
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~->
|