查看: 1627|回复: 4
|
请问如何让在vb6里摆放计算好的数字答案?
[复制链接]
|
|
请问一下,我想把form1里的所有textbox相加起来数字,然后减去form2里的所有textbox相加起来数字,答案出现在form3里,应该如何编写出来?
![](https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-ash3/941531_169680099874640_768925366_n.jpg)
|
|
|
|
|
|
|
|
发表于 29-5-2013 07:30 PM
|
显示全部楼层
- Form3.Text1.Text = Val(Form1.Text1.Text) + Val(Form1.Text2.Text) - Val(Form2.Text1.Text) - Val(Form2.Text2.Text)
复制代码 vb6的 textbox 自動幫你轉換 from int to string.你習慣了後學其他language會有小麻煩.
|
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 8-9-2013 04:32 PM
|
显示全部楼层
yan13 发表于 29-5-2013 07:30 PM ![](static/image/common/back.gif)
vb6的 textbox 自動幫你轉換 from int to string.你習慣了後學其他language會有小麻煩.
10q..................
|
|
|
|
|
|
|
|
发表于 10-9-2013 12:16 PM
|
显示全部楼层
mysinyics 发表于 8-9-2013 04:32 PM ![](static/image/common/back.gif)
10q..................
恭喜.要下載的話需要註冊,我就不下載了![](static/image/smiley/default/lol.gif)
|
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 10-9-2013 01:36 PM
|
显示全部楼层
yan13 发表于 10-9-2013 12:16 PM ![](static/image/common/back.gif)
恭喜.要下載的話需要註冊,我就不下載了
谢谢你~~~~~~~~
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|