在vb6.0中的文本框中自动增加 [英] auto increement in text box in vb6.0

查看:247
本文介绍了在vb6.0中的文本框中自动增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在设计一种表格,其中我在作业编号中使用文本框.因此,每当我按添加命令时,此文本框应自动按顺序输入数字.因此,请提供代码和解释帮助.

I am designing a form, in which i am using a text box for jobNo. So whenever i press add command this text box should automatically take numbers in sequence. So please help with the code and explanation.

预先感谢

推荐答案

您好,您可以使用Random类生成数字.或通过数据库获取您的原始元素的最大数量.

Hi, You can use Random class to generate numbers. Or via DB get the max number of your sourcecolemn.

此论坛是关于WP而不是VB.

This forum is about WP not VB.

此致.


这篇关于在vb6.0中的文本框中自动增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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