Microsoft Dot Net Master

Microsoft Dot Net Master
Microsoft Dot Net Master

Monday, February 28, 2011

Convert String To Decimal

string qty;
decimal qtyy = ToDecimal(qty);
private decimal ToDecimal(string Value)
{
if (Value.Length == 0)
return 0;
else
return Decimal.Parse(Value);
}

No comments:

Post a Comment