Hi, i have this message
Index e length devono fare riferimento a una posizione nella stringa.
Nome parametro: length
i don't know because the code after "else" generates the error.
Index e length devono fare riferimento a una posizione nella stringa.
Nome parametro: length
i don't know because the code after "else" generates the error.
Code:
imponibile = System.Math.Round((totale / (1 + (iva / 100))), 2, MidpointRounding.ToEven); String res2 = "" + imponibile; String[] arres2 = res2.Split(','); if (arres2.Length > 1) { res2 = arres2[0] + ","; String dec = arres2[1]; if (dec.Length >= 2) res2 += dec.Substring(0, 2); else res2 += dec.Substring(0, 2); } TextBoxMImponibile.Text = res2;
Comment