标题:VB 读取txt中5行数据,去掉去掉空格,再用逗号隔开。
取消只看楼主
dempsey
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2010-11-26
结帖率:66.67%
已结贴  问题点数:20 回复次数:4 
VB 读取txt中5行数据,去掉去掉空格,再用逗号隔开。
---------------------------------------------------------------------------------
|459349     NB   M522                           公司             P12 2010.08.16 |
|  00060 PRDARA123WJZZ      放热板                                   N          |
|        NP2  R171                3,465.000  PC            5.43  RMB       1 PC |
|     仍要交货                        0.000  PC            0.00  RMB     0.00 % |
|     仍要开票                        2.000  PC           10.86  RMB     0.06 % |
|461108     NB   M522                           公司             P12 2010.08.30 |
|  00040 CCHSM3456TPN2      背板                                     C          |
|        NP2  R100                1,470.000  PC          161.99  RMB       1 PC |
|     仍要交货                        0.000  PC            0.00  RMB     0.00 % |
|     仍要开票                    1,470.000  PC      238,125.30  RMB   100.00 % |
---------------------------------------------------------------------------------
TXT内容如上,我要提取结果例:459349,NB,M522,公司,P12,.....2.000,PC,10.86,RMB,0.06%
搜索更多相关主题的帖子: 逗号 txt 空格 数据 隔开 
2010-11-26 13:43
dempsey
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2010-11-26
得分:0 
那我想知道怎么能吧TXT中的“|”和“---------------------------------------------------------------------------------”去掉?
2010-11-26 14:22
dempsey
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2010-11-26
得分:0 
我的原意是想把这些数据重新排列,然后放到ACCESS里。难搞啊!!
2010-11-26 16:00
dempsey
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2010-11-26
得分:0 
谢谢了~~
2010-11-27 11:27
dempsey
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2010-11-26
得分:0 
459349,NB,M522,公司,P12,2010.08.16
00060,PRDARA942WJZZ,放热板,N
NP2,R171,3,465.000,PC,5.43,RMB,1,PC
仍要交货,0.000,PC,0.00,RMB,0.00%
仍要开票,2.000,PC,10.86,RMB,0.06%
461108,NB,M522,公司,P12,2010.08.30
00040,CCHSM0074TPN2,背板,C
NP2,R100,1,470.000,PC,161.99,RMB,1,PC
仍要交货,0.000,PC,0.00,RMB,0.00%
仍要开票,1,470.000,PC,238,125.30,RMB,100.00%
461508,NB,M522,公司,P12,2010.09.02
00010,CANGKB414WJ01,金属框架,C
NP2,R171,89.000,PC,13.72,RMB,1,PC
仍要交货,0.000,PC,0.00,RMB,0.00%
仍要开票,89.000,PC,1,221.08,RMB,100.00%
00020,CANGKB414WJ02,金属框架,C
NP2,R171,89.000,PC,18.59,RMB,1,PC
仍要交货,0.000,PC,0.00,RMB,0.00%
仍要开票,89.000,PC,1,654.51,RMB,100.00%

现在变成了这个样子,我怎么在TXT中取几个数据呢,比如我要取459349,00060,PRDARA942WJZZ,仍要交货,0.000,PC,0.00,.......

2010-11-27 11:55



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-326959-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.648567 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved