int theResult = 0; if (theValue == null || Convert.IsDBNull(theValue) || !int.TryParse(theValue.ToString(), out theResult)) theResult = 0; return theResult;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)