Error message during calculation

前端 未结 4 870
长发绾君心
长发绾君心 2021-01-29 06:31

Anyone, please take a look at my line of code.

int totalValue = 0;
    totalValue = int.Parse(Label9.Text) * int.Parse(Label6.Text);
    Label8.Text = **totalVa         


        
4条回答
  •  清歌不尽
    2021-01-29 07:11

    That's because totalValue is an int.

    Try this:

    Label8.Text = totalValue.ToString();
    

提交回复
热议问题