decimal demo=0(Zero); decimal LPvsMAXFMV =Convert.ToDecimal(dtrow["LPvsMAXFMV"])!=null? Convert.ToDecimal(dtrow["LPvsMAXFMV"]):demo;
decimal.TryParse
Nullable Decimal
decimal tmpvalue; decimal? result = decimal.TryParse((string)dtrow["LPvsMAXFMV"], out tmpvalue) ? tmpvalue : (decimal?)null;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)