🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / C# Athena / gelen string deger sayı ise aynen dondurur ama string ise 0 döndürür

 

1-) C# Athena -  gelen string deger sayı ise aynen dondurur ama string ise 0 döndürür

 

public string MyExistDecimal(string pText) { // sayı ise convert eder

            try {

                decimal value;

                if (Decimal.TryParse(pText, out value)) {

                    return value + "";

                }

                return "0";

            } catch (Exception ex) {

                return "0";

                AthMessageBox.MyShowMessage("HATA", "Pupd0214->MyExistDecimal->" + ex.Message, AthMsgType.mtError);

            }

        }

 2021 Ocak 18 Pazartesi
 438