查找并替换text di vb6 [英] Find and replace text di vb6

查看:80
本文介绍了查找并替换text di vb6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我对vb6代码有些问题。

我的数据包含:


:25:0186350587

:25:186350587

:25:86350587

:25:6350587

:25:350587

:25:50587

:25:587

:25:87

:25 :7


我希望它在以下后插入零号:25 :,但是后面的数字:25:总是必须是10位数。所以它将是:


:25:0186350587

:25:0186350587

:25:0086350587

:25:0006350587

:25:0000350587

:25:0000050587

:25:0000000587

:25:0000000087

:25:0000000007


我在vb6中有一个代码,但它只插入两位数的零数字,所以它将是:


:25:000186350587(超过10位数)

:25:00186350587(超过10位数)

:25 :0086350587(10位数)

:25:006350587(少于10位数)

:25:00350587(少于10位数)

:25:0050587(少于10位数)

:25:00587(少于10位数)

:25:0087(少于10位数)

:25:007(少于10位数)


这是我的代码,包含文本框和命令:

Hi All,

I have some problem with vb6 code.
I have a data contain :

:25:0186350587
:25:186350587
:25:86350587
:25:6350587
:25:350587
:25:50587
:25:587
:25:87
:25:7

I want it to insert zero number after :25: , but the number after :25: is always has to be 10 digit. So it would be :

:25:0186350587
:25:0186350587
:25:0086350587
:25:0006350587
:25:0000350587
:25:0000050587
:25:0000000587
:25:0000000087
:25:0000000007

I have a code in vb6 but it only insert two digit of zero number, so it would be :

:25:000186350587 (more than 10 digit)
:25:00186350587 (more than 10 digit)
:25:0086350587 (10 digit)
:25:006350587 (less than 10 digit)
:25:00350587 (less than 10 digit)
:25:0050587 (less than 10 digit)
:25:00587 (less than 10 digit)
:25:0087 (less than 10 digit)
:25:007 (less than 10 digit)

this is my code with textbox and command :

展开 | 选择 | Wrap | 行号

推荐答案

我希望这会对你有所帮助:(另见附件)

I hope this will help You: (see also attachment)

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


和其他两个站点一样......格式&q UOT;它...
As on TWO other sites... "Format" it out...
展开 | 选择 | Wrap | 行号


但数字并不总是如此:


":25:0186350587,:25:186350587,:25:86350587,:25:635 0587,:25:350587,:25:50587,:25:587,:25:87,:25:7"


可以是:


":25:0006350007,:25:186350587,:25:86350587,:25:635 0587 ,:25:350587,:25:50587,:25:587,:25:87,:25:7"


或:


" ;:25:0006352207 ,:25:186236117,:25:86350587,:25:632 4487,:25:350587,:25:50333,:25:587,:25:87,:25:4

等等。


因为我在VB6中知道我无法理解你要解释的内容。

也许它会通过下载上述帖子的链接搞清楚。


无论如何,谢谢

Andi
But the number is not always just :

":25:0186350587,:25:186350587,:25:86350587,:25:635 0587,:25:350587,:25:50587,:25:587,:25:87,:25:7"

It can be :

":25:0006350007,:25:186350587,:25:86350587,:25:635 0587,:25:350587,:25:50587,:25:587,:25:87,:25:7"

Or :

":25:0006352207,:25:186236117,:25:86350587,:25:632 4487,:25:350587,:25:50333,:25:587,:25:87,:25:4"

and so on.

Cause I knew in VB6 I can not understand what you are trying to explain.
Maybe it will figure out by downloading the link at the above post.

Thanks anyway
Andi


这篇关于查找并替换text di vb6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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