Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 11336

Erro ao converter valor de uma textbox em int

$
0
0
Boa noite, public void total_wdesc() { int precunit = Convert.ToInt32(txtPrice.Text); int price_unit; price_unit = (precunit > 0) ? precunit : 0; //Calcula o valor em função da quantidade if(txtSaleQty.Text != "") { qtd = Convert.ToInt32(txtSaleQty.Text); total_qtd = price_unit * qtd; } txtTotalAmount.Text = Convert.ToString(total_qtd); } Cordiais cumprimentos, Apocsantos

Viewing all articles
Browse latest Browse all 11336

Trending Articles