易语言替换文本问题
我有一大批字符play_400008092_100314play_400008092_100314play_400008092_100314play_400008092_...
我有一大批字符
play_400008092_100314
play_400008092_100314
play_400008092_100314
play_400008092_100315
play_400008092_100316
play_400008092_100317
play_400008092_100318
play_400008092_100319
play_400008092_100320
play_400008092_100321
play_400008092_100322
play_400008092_100323
play_400008092_100324
play_400008092_100325
play_400008092_100326
play_400008092_100327
play_400008092_100328
play_400008092_100329
play_400008092_100330
play_400008092_100331
play_400008092_100332
play_400008092_100333
play_400008092_100334
play_400008092_100335
play_400008092_100336
play_400008092_100337
play_400008092_100338
play_400008092_100339
play_400008092_100340
play_400008092_100341
play_400008092_100342
play_400008092_100343
play_400008092_100344
play_400008092_100345
play_400008092_100346
play_400008092_100347
play_400008092_100348
play_400008092_100349
play_400008092_100350
play_400008092_100351
play_400008092_100352
play_400008092_100353
play_400008092_100354
play_400008092_100355
play_400008092_100356
play_400008092_100357
play_400008092_100358
play_400008092_100359
play_400008092_100360
play_400008092_100361
play_400008092_100362
play_400008092_100363
play_400008092_100364
play_400008092_100365
play_400008092_100366
play_400008092_100367
play_400008092_100368
play_400008092_100369
请问,如何用易语言把“play_400008092_”给替换没有? 展开
play_400008092_100314
play_400008092_100314
play_400008092_100314
play_400008092_100315
play_400008092_100316
play_400008092_100317
play_400008092_100318
play_400008092_100319
play_400008092_100320
play_400008092_100321
play_400008092_100322
play_400008092_100323
play_400008092_100324
play_400008092_100325
play_400008092_100326
play_400008092_100327
play_400008092_100328
play_400008092_100329
play_400008092_100330
play_400008092_100331
play_400008092_100332
play_400008092_100333
play_400008092_100334
play_400008092_100335
play_400008092_100336
play_400008092_100337
play_400008092_100338
play_400008092_100339
play_400008092_100340
play_400008092_100341
play_400008092_100342
play_400008092_100343
play_400008092_100344
play_400008092_100345
play_400008092_100346
play_400008092_100347
play_400008092_100348
play_400008092_100349
play_400008092_100350
play_400008092_100351
play_400008092_100352
play_400008092_100353
play_400008092_100354
play_400008092_100355
play_400008092_100356
play_400008092_100357
play_400008092_100358
play_400008092_100359
play_400008092_100360
play_400008092_100361
play_400008092_100362
play_400008092_100363
play_400008092_100364
play_400008092_100365
play_400008092_100366
play_400008092_100367
play_400008092_100368
play_400008092_100369
请问,如何用易语言把“play_400008092_”给替换没有? 展开
展开全部
.版本 2
.程序集 窗口程序集1
.子程序 __启动窗口_创建完毕
.局部变量 局部_文本数组, 文本型, , "0"
' 第一种方法
输出调试文本 (文本替换 (“play_400008092_100369”, 1, 15, “”))
' 第二种方法
局部_文本数组 = 分割文本 (“play_400008092_100369”, “_”, )
输出调试文本 (局部_文本数组 [3])
' 第三种方法,适当的地方加换行符就行了,或者用循环也可以
输出调试文本 (子文本替换 (“play_400008092_100314play_400008092_100314play_400008092_100314play_400008092_100315play_400008092_100316play_400008092_100317play_400008092_100318play_400008092_100319play_400008092_100320play_400008092_100321play_400008092_100322play_400008092_100323play_400008092_100324play_400008092_100325play_400008092_100326play_400008092_100327play_400008092_100328play_400008092_100329play_400008092_100330play_400008092_100331play_400008092_100332play_400008092_100333play_400008092_100334play_400008092_100335play_400008092_100336play_400008092_100337play_400008092_100338play_400008092_100339play_400008092_100340play_400008092_100341play_400008092_100342play_400008092_100343play_400008092_100344play_400008092_100345play_400008092_100346play_400008092_100347play_400008092_100348play_400008092_100349play_400008092_100350play_400008092_100351play_400008092_100352play_400008092_100353play_400008092_100354play_400008092_100355play_400008092_100356play_400008092_100357play_400008092_100358play_400008092_100359play_400008092_100360play_400008092_100361play_400008092_100362play_400008092_100363play_400008092_100364play_400008092_100365play_400008092_100366play_400008092_100367play_400008092_100368play_400008092_100369”, “play_400008092_”, “”, , , 真))
.程序集 窗口程序集1
.子程序 __启动窗口_创建完毕
.局部变量 局部_文本数组, 文本型, , "0"
' 第一种方法
输出调试文本 (文本替换 (“play_400008092_100369”, 1, 15, “”))
' 第二种方法
局部_文本数组 = 分割文本 (“play_400008092_100369”, “_”, )
输出调试文本 (局部_文本数组 [3])
' 第三种方法,适当的地方加换行符就行了,或者用循环也可以
输出调试文本 (子文本替换 (“play_400008092_100314play_400008092_100314play_400008092_100314play_400008092_100315play_400008092_100316play_400008092_100317play_400008092_100318play_400008092_100319play_400008092_100320play_400008092_100321play_400008092_100322play_400008092_100323play_400008092_100324play_400008092_100325play_400008092_100326play_400008092_100327play_400008092_100328play_400008092_100329play_400008092_100330play_400008092_100331play_400008092_100332play_400008092_100333play_400008092_100334play_400008092_100335play_400008092_100336play_400008092_100337play_400008092_100338play_400008092_100339play_400008092_100340play_400008092_100341play_400008092_100342play_400008092_100343play_400008092_100344play_400008092_100345play_400008092_100346play_400008092_100347play_400008092_100348play_400008092_100349play_400008092_100350play_400008092_100351play_400008092_100352play_400008092_100353play_400008092_100354play_400008092_100355play_400008092_100356play_400008092_100357play_400008092_100358play_400008092_100359play_400008092_100360play_400008092_100361play_400008092_100362play_400008092_100363play_400008092_100364play_400008092_100365play_400008092_100366play_400008092_100367play_400008092_100368play_400008092_100369”, “play_400008092_”, “”, , , 真))
追问
我想用第一种方法,但这组数字太多了,需要从100314到100369,完成之后全部加入编辑框,这个怎么写?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
先把字符保存在e文件目录下的文本文档中。
再使用
子文本替换 (读入文件 (“.\XX.txt”), “play_400008092_”, “”, , , 真)
这样就行了。
你如果要替换后的内容,bjk1.nr=子文本替换 (读入文件 (“.\XX.txt”), “play_400008092_”, “”, , , 真)就行了
再使用
子文本替换 (读入文件 (“.\XX.txt”), “play_400008092_”, “”, , , 真)
这样就行了。
你如果要替换后的内容,bjk1.nr=子文本替换 (读入文件 (“.\XX.txt”), “play_400008092_”, “”, , , 真)就行了
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
直接用子文本替换就可以了,把这段文本放在编辑框1里面。
编辑框1.内容 = 子文本替换 (编辑框1.内容, “play_400008092_”, , , , 真)
编辑框1.内容 = 子文本替换 (编辑框1.内容, “play_400008092_”, , , , 真)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
子文本替换
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询