-HELP-两个文本框的总和,然后在最后一个文本框中获取总数 [英] -HELP- sum of 2 textboxs and then getting the total in the last textbox

查看:83
本文介绍了-HELP-两个文本框的总和,然后在最后一个文本框中获取总数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从2个文本框中获取2个数字并在第三个文本框中获得一个返回总和。奇怪的是,我得到它使用这个代码,我将在我工作的最后一个应用程序上提供,现在在我的新应用程序上它根本不工作..我没有得到任何错误,只是当我计算总文本框的总和时显示零。

展开 | 选择 | Wrap | 行号

解决方案

它以什么方式不起作用?您收到错误消息了吗?什么是错误消息?


此外,在您的代码中,您正在成倍增加而不是添加。


根本没有出现错误消息。它只显示第三个总和文本框中的零


我会检查代码每一步的所有变量的值,以确保它正确填充。

I am trying to get 2 numbers from 2 textboxs and get a return sum in the third textbox. the strange thing is that i got it to work with this code that i am going to provide on the last app i worked on, now on the new app i am on it doesnt work at all.. I am not getting any Errors, just shows a zero when i calculate to the sum of the total textbox.

Expand|Select|Wrap|Line Numbers

解决方案

In what way does it not work? Are you getting an error message? What is the error message?

Also, in your code, you are multiplying, not adding.


Not getting an error messsage at all.. it just shows a zero in the third sum total textbox


I would check the values of all the variables along each step of the code to make sure it''s populating correctly.


这篇关于-HELP-两个文本框的总和,然后在最后一个文本框中获取总数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆