本文介绍了如何将数据从一个单元转移到另一个单元的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi for all

hi for all

我在一个表单中有很多文本框,每个文本框都有它的值我怎样才能以第一个文本框的值插入第一个文本框的值转移到第二个texbox和第二个转移到thired .....等,最后一个将被删除(这样我们将
转移到右边)

I have many textboxs in one form and each one have it's value how can I insert value to the first textbox in way the value of the first textbox transfer to scond texbox and scond transfer to the thired .....etc and the last will be deleted (such us shift to right )

我怎么能做到

推荐答案

我不是真的很确定你想要完成什么,但似乎 你想将textbox1的值填充到textbox2等中

I am not really sure what are you trying to accomplish, but it seems  you want to populate the value of textbox1 into textbox2 and etc

在text1的更新后事件中......将其值赋给textbox2并清除textbox1值。

In the after update event of text1...assign its value to textbox2 and clear textbox1 value.

看起来应该是这样......

it should look something like this....

****************

****************

私有子Text1_afterupdate()

Private Sub Text1_afterupdate()

Textbox2 = textbox1

Textbox2 = textbox1

textbox1 =""

textbox1 = ""

结束sub

****************

****************

在hte afterupdate事件中为每个文本框重复此过程你的表格。 

Repeat this process in hte afterupdate event for every textbox in your form. 

这是您要找的吗? 如果没有,请告诉我们。

Is this what you are looking for?  If not, let us know.


这篇关于如何将数据从一个单元转移到另一个单元的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 01:42