logo       

Resolved: Testing a DataTable to see if it is assigned (C#): msg#00032

Subject: Resolved: Testing a DataTable to see if it is assigned (C#)

Woops.  I wasn't setting the file to null when I declared it.

Sometimes it's the simplist things...
KRP 

--- In padnug@xxxxxxxxxxxxxxx, "Justin Collum" <justin@xxxx> wrote:
> 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@xxxx] 
> 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 --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~-> 

 


<Prev in Thread] Current Thread [Next in Thread>