易语言替换文本问题

2024-12-29 05:54:49
推荐回答(4个)
回答1:

.版本 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_”, “”, , , 真))

回答2:

先把字符保存在e文件目录下的文本文档中。
再使用
子文本替换 (读入文件 (“.\XX.txt”), “play_400008092_”, “”, , , 真)
这样就行了。
你如果要替换后的内容,bjk1.nr=子文本替换 (读入文件 (“.\XX.txt”), “play_400008092_”, “”, , , 真)就行了

回答3:

直接用子文本替换就可以了,把这段文本放在编辑框1里面。

编辑框1.内容 = 子文本替换 (编辑框1.内容, “play_400008092_”, , , , 真)

回答4:

子文本替换