如何将数据从一个单元转移到另一个单元

编程入门 行业动态 更新时间:2024-10-08 20:37:34
本文介绍了如何将数据从一个单元转移到另一个单元的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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 )

我怎么能做到

推荐答案

Wissam,

Wissam,

我不是真的很确定你想要完成什么,但似乎你想将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.

更多推荐

如何将数据从一个单元转移到另一个单元

本文发布于:2023-07-09 10:07:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1085519.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:单元   如何将   数据   转移到

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!