Вверх ↑
Ответов: 278
Рейтинг: 5
#1: 2022-02-20 15:16:25 ЛС | профиль | цитата
Можно поставить несколько Replace (Замена текста в строке)


Add(Edit,7513133,728,266)
{
Left=130
Top=40
Width=195
Text=".field private static b:Z = false"
ClearAfterEnter=1
}
Add(Replace,13114084,686,343)
{
link(onReplace,2308753:doReplace,[])
link(Str,13375948:Text,[])
link(Sub_str,7513133:Text,[(699,324)(734,324)])
link(Dest,5554796:Text,[(706,332)(776,332)])
}
Add(Edit,5554796,770,266)
{
Left=130
Top=75
Width=190
Text=".field private static b:Z"
}
Add(StrList,13375948,686,252)
{
}
Add(Hub,3522052,623,280)
{
OutCount=3
link(onEvent1,13375948:doLoad,[])
link(onEvent2,13114084:doReplace,[(655,293)(655,349)])
link(onEvent3,13375948:doSave,[(679,300)(679,293)])
}
Add(Replace,2308753,798,343)
{
link(onReplace,7513883:doReplace,[])
}
Add(Replace,7513883,840,343)
{
link(onReplace,13375948:doText,[(942,349)(942,190)(674,190)(674,279)])
}

Не получается сделать множественную замену.А MultiReplace (Множественная замена) мне не подходит
Add(MainForm,11951074,469,413)
{
Width=718
Height=210
}
Add(Button,1032059,189,364)
{
Left=335
Top=10
Width=100
Caption="Папка"
link(onClick,1584642:doBrowse,[])
}
Add(Button,1454278,329,364)
{
Left=335
Top=35
Width=100
Enabled=1
Caption="Заменить"
Point(doEnabled)
link(onClick,9717498:doSearch,[])
}
Add(Label,15810939,287,294)
{
Left=5
Top=10
Width=49
Height=17
Caption="Каталог:"
}
Add(Edit,8494145,280,364)
{
Left=130
Top=10
Width=195
Text=""
link(onChange,1454278:doEnabled,[])
}
Add(Browse,1584642,238,364)
{
Title="Select Folder"
NewDirButton=1
link(onBrowse,8494145:doText,[])
}
Add(FileSearch,9717498,378,364)
{
Ext="*.xml"
link(onSearch,3522052:doEvent1,[])
link(onEndSearch,10740030:doString,[(420,377)(420,402)(366,402)(366,440)])
link(Dir,8494145:Text,[(391,348)(320,348)(320,406)(286,406)])
}
Add(Message,11449550,420,434)
{
Caption="Finish"
Icon=4
link(onMessage,11951074:doClose,[])
}
Add(FormatStr,10740030,378,434)
{
Mask="Обработано %1 файлов"
link(onFString,11449550:doMessage,[])
link(Str1,9717498:Count,[])
}
Add(Replace,13114084,630,420)
{
link(onReplace,7986677:doReplace,[])
link(Str,10199091:Var2,[(636,410)(615,410)])
link(Sub_str,5342305:Value,[(643,310)(706,310)])
link(Dest,8213571:Result,[(650,345)(748,345)])
}
Add(Label,10384203,329,294)
{
Left=5
Top=75
Width=94
Height=17
Caption="На что заменить"
}
Add(Label,2813661,371,294)
{
Left=5
Top=40
Width=94
Height=17
Caption="Что заменить"
}
Add(StrList,13375948,581,315)
{
Point(doLoad)
Point(doSave)
Point(EndIdx)
link(onChange,9805861:doEvent1,[(621,321)(621,167)])
}
Add(Hub,3522052,476,364)
{
OutCount=4
link(onEvent1,13375948:doLoad,[(519,370)(519,349)])
link(onEvent2,1653610:doEvent1,[(570,377)(570,244)])
link(onEvent3,13114084:doReplace,[(525,384)(525,426)])
link(onEvent4,13375948:doSave,[(536,391)(536,356)])
}
Add(StrCat,8213571,742,238)
{
link(Str1,15048242:Value,[(748,216)(790,216)])
link(Str2,11257383:Value,[(755,223)(832,223)])
}
Add(BlockFind,4685345,658,161)
{
IncludeBlock=1
StartBlock=" package=""
EndBlock="" "
link(onSearch,5342305:doValue,[])
link(Text,12633930:Var3,[(664,154)])
}
Add(Memory,11257383,826,161)
{
Default=String(gar)
}
Add(Memory,15048242,784,161)
{
Default=String()
}
Add(Delete,6533868,742,161)
{
Count=3
Direction=1
link(onDelete,15048242:doValue,[])
}
Add(Memory,5342305,700,161)
{
Default=String()
link(onData,6533868:doDelete,[])
}
Add(GetDataEx,10199091,609,392)
{
link(Data,1953778:Var2,[])
}
Add(BlockFind,2033397,861,105)
{
IncludeBlock=1
StartBlock=" <provider android:authorities=""
EndBlock="" "
link(onSearch,14093193:doValue,[])
link(Text,12633930:Var1,[(867,93)(629,93)])
}
Add(Memory,14093193,903,105)
{
Default=String()
}
Add(Replace,7986677,700,420)
{
link(onReplace,1976889:doTrim,[])
link(Str,1953778:Var1,[(706,390)])
link(Sub_str,109337:Var2,[(713,367)(909,367)])
link(Dest,11383716:Result,[(720,388)(937,388)])
}
Add(StrCat,11383716,931,245)
{
link(Str1,109337:Var3,[(937,159)])
link(Str2,4234477:Value,[(944,184)(958,184)])
}
Add(GetDataEx,1953778,609,385)
{
link(Data,13375948:Text,[(615,380)(587,380)])
}
Add(Memory,4234477,952,105)
{
Default=String(_clone)
}
Add(GetDataEx,109337,903,154)
{
link(Data,14093193:Value,[])
}
Add(Trim,1976889,763,420)
{
Char="\r\n"
Mode=5
Point(Result)
link(onTrim,13375948:doText,[(832,426)(832,287)(562,287)(562,342)])
}
Add(GetDataEx,12633930,623,149)
{
Angle=3
link(Data,10199091:Var1,[(549,154)(549,397)])
}
Add(Hub,1653610,651,238)
{
link(onEvent1,8213571:doStrCat,[])
link(onEvent2,11383716:doStrCat,[])
}
Add(Hub,9805861,630,161)
{
link(onEvent1,4685345:doSearch,[])
link(onEvent2,2033397:doSearch,[(653,174)(653,111)])
}
карма: 0

0
Редактировалось 1 раз(а), последний 2022-02-20 15:21:10