覆盖文本框中的数据 [英] overwriting data in a textbox

查看:75
本文介绍了覆盖文本框中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个温度监控应用程序,可以从基本印章传输温度信息
使用vb2008程序将2个微控制器连接到PC.程序运行良好,但无法在
中获取数据 当收到新数据时,文本框会自动覆盖数据,我只得到了一大串连续数据.有任何建议吗?

I have a temperature monitoring application that transfers temperature information from a basic stamp
2 microcontroller to a PC using a vb2008 program. Program works great except I cannot get the data in
the text box to overwrite the data automatically as new data is recieved, I just get one big long string of continous data. Any suggestions?

推荐答案

我建​​议您在遇到编程问题时,需要发布代码,以便我们告诉您出了什么问题.在这种情况下,这很容易.该文本框具有Text属性.如果用+ =加上,则附加字符串,如果用=设置,则替换字符串.只需将文本设置为仅要显示的数据即可.
I suggest when you have a programming question, you need to post your code, so we can tell you what is wrong. In this case, it''s easy. the textbox has a Text property. If you add to it with +=, you append the string, if you set it with =, you replace the string. Just set the text to just the data you want to show.


这篇关于覆盖文本框中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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