Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
118619 Points
18779 Posts
Feb 15, 2012 12:54 AM|LINK
dcgate if (reference == null) { reference = "..."; }
Please change to this and have a try with:
if (reference!=null && !string.IsNullOrEmpty(reference.Trim())) { …………………… } else { //Do to deal with Empty or Null values…… }
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: reading excel table with empty cells (oledb)
Feb 15, 2012 12:54 AM|LINK
Please change to this and have a try with:
if (reference!=null && !string.IsNullOrEmpty(reference.Trim()))
{
……………………
}
else
{
//Do to deal with Empty or Null values……
}