| 网站首页 | 业界新闻 | 群组 | 人才 | 下载频道 | 博客 | 代码贴 | 编程论坛
雷速体育发帖软件开发QQ118000023C语言培训|一对一辅导|零基础学编程LightningChart 快速先进的.Net图表控件
共有 547 人关注过本帖
标题:文本内容超长,导入的问题
只看楼主 收藏
lnsyzhuhua
Rank: 1
等 级:新手上路
帖 子:31
专家分:0
注 册:2017-8-16
  得分:0 
回复 20楼 sdta
看了,测试后可行。问下:
含有不定长双字节字符,不影响吧?
2018-04-13 09:32
sdta
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:164
帖 子:7122
专家分:16760
注 册:2012-2-5
  得分:0 
上传完整TXT文件,不要让大家猜测,浪费别人的时间,也浪费自己的时间。

坚持VFP最后的阵地
2018-04-13 12:20
lnsyzhuhua
Rank: 1
等 级:新手上路
帖 子:31
专家分:0
注 册:2017-8-16
  得分:0 
回复 14楼 sdta
原数据内容
016439156000001975344000001975344C00000022482120180503**** 女士                     辽宁省****市****区水********府***号                                                                                                                1210006282 6100 2000 003220180408000001879049C000000210000000000030318000000000000C000000275977EM0+      辽宁省**市***路***号                                                                                                                              12121800000000000000000000000000000198703FC     10        0003                                    210703198703272049000000430200        20120920100000072012001     0100020                    00000000000009240000000000                                                                                                                                                   
016439156000000013000000000013000C00000000500020180503****** 先生                   辽宁省***市                 ******县                                                                                                                  1210006282 6100 2009 077720180408000000000000C000000000000000000000000000000000000C000000013000LT0+                                                                                                                                                                  00000000000000000000000000010198101MC     10        0003                                    210726198101152511000005950100        1803270110500160            0100020                    00000000000002440000000000    **县****管理所                                                                                                                           
2018-04-18 09:37
lnsyzhuhua
Rank: 1
等 级:新手上路
帖 子:31
专家分:0
注 册:2017-8-16
  得分:0 
回复 22楼 sdta
=ALINES(aa,FILETOSTR("测试.txt"))
CREATE CURSOR tt (列1 c(234),列2 c(99),列3 m)
FOR i=1 TO ALEN(aa,1)
    INSERT INTO tt VALUES (SUBSTR(aa[i],1,234),SUBSTR(aa[i],235,99),SUBSTR(aa[i],334))
ENDFOR
BROWSE

在vfp6.0中,如何写?
=ALINES(aa,FILETOSTR("测试.txt"))    &&这句
2018-04-18 09:38







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

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