Error message during calculation

前端 未结 4 868
长发绾君心
长发绾君心 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条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 07:35

    try this:

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

提交回复
热议问题