在文本框中随机和顺序打印 [英] Random and sequntial print in text box

查看:100
本文介绍了在文本框中随机和顺序打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要Visual Basic6/studio中的代码

我有一个号码,例如69874627,我要粘贴此号码.是100个文本框,按顺序排列

例如

输入-> 69874627370

在100个文本框中输出

textbox1 = 6
"2 = 9
"3 = 8
"
"
"....
"9 = 7

之后,文本框11包含"7 + 3rd digit = 9"
所以textbox11 = 9
"12 = 8
"13 = 7
"14 = 4
"
"....

之后,文本框21包含"6 + 4th digit = 4"
等等

然后停止将值粘贴到第100个文本框

I want a code in visual basic6/studio

I have a number like 69874627, I want to paste this no. is 100 text box, in a sequential manner

For example

Input--> 69874627370

output in 100 text box

textbox1 = 6
" 2 = 9
" 3 = 8
"
"
" ....
" 9 = 7

After that text box 11 contains "7+3rd digit= 9"
so textbox11 = 9
" 12 = 8
" 13 = 7
" 14 = 4
"
" ....

After that text box 21 contains "6+4th digit= 4"
and so on

and stop to paste the value at 100th text box

推荐答案

那是什么问题?您知道逻辑(已经在您的问题中写过)...循环100次并将这些值应用于文本框.可以动态创建文本框并为其分配值!
:thumbsup:
So whats the problem? You know the logic (already written in your question)... loop through 100 times and apply the values to the textbox. Can create textboxes dynamically and assign them the values!
:thumbsup:


使用for循环来实现这一目的

谢谢与问候
基:rose:
use a for loop to achieve this

Thanks & Regards
Radix :rose:


这篇关于在文本框中随机和顺序打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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