Андрей., вроде работает, но как остановить перебор
вот тестовая схема
Add(InfoTip,11770,28,455) { Info=#51:Обработчик текста, или просто задержка на 1 секунду| Font=[Tahoma,10,0,0,204] Frame=2 HAlign=0 Width=335 Height=177 } Add(ListBox,4313538,392,21) { Left=660 Top=2 Width=110 Height=500 Ctl3D=1 Strings=#5:lOlOl|9:WickeDick|11:HenryNewman|9:lorDFreak|9:HenryWill|11:andyVincent|8:Wordepic|8:NonaName| } Add(MultiElementEx,1100096,119,581) { link(Data,3080417:Var2,[]) link(onComplete,980447:In,[(159,587)(159,573)]) link(status,16227043:doText,[]) } BEGIN_SDK Add(EditMultiEx,14479875,21,21) { WorkCount=#15:doProcedureData| EventCount=#10:onComplete|6:status| DataCount=#4:Data| Height=130 link(doProcedureData,15400024:doEvent1,[(24,27)(24,62)]) } Add(Hub,15400024,35,56) { OutCount=3 link(onEvent1,4269804:doData,[(77,62)(77,34)]) link(onEvent2,13254693:doLength,[]) link(onEvent3,15826600:doTimer,[(70,76)(70,111)]) } Add(Length,13254693,168,63) { link(Str,14479875:Data,[(174,24)(27,24)]) } Add(FormatStr,15443289,168,105) { DataCount=1 Mask="%1 = букв" link(onFString,8079723:doWork3,[(256,111)]) link(Str1,13254693:Result,[]) } Add(Timer,15826600,84,105) { Interval=500 Enable=1 AutoStop=1 link(onTimer,3334719:doEvent1,[]) } Add(DoData,4269804,98,28) { Data=String(Обработка) link(onEventData,8079723:doWork2,[(191,34)(191,48)]) } Add(Hub,3334719,126,105) { link(onEvent1,15443289:doString,[]) link(onEvent2,1192525:doTimer,[]) } Add(HubEx,8079723,252,35) { Angle=3 link(onEvent,14479875:status,[(256,34)]) } Add(Timer,1192525,259,112) { Interval=500 Enable=1 AutoStop=1 link(onTimer,14479875:onComplete,[(306,118)(306,27)]) } END_SDK Add(Edit,16227043,280,588) { Left=225 Top=30 Width=130 Ctl3D=1 Text="" } Add(LineBreak,5755346,35,581) { Caption="doStart" Color=-16777192 link(Out,12277073:doEvent1,[]) Primary=[13803589,651,-399] } Add(LineBreak,7811763,623,413) { Caption="text" Type=1 Color=15780518 link(Data,863698:Item,[]) Primary=[11699194,-504,70] } Add(LineBreak,95897,21,294) { Caption="doComplete" Color=-16777192 link(Out,13089735:doEvent2,[(151,300)(151,251)]) Primary=[980447,189,273] } Add(LED,13871021,805,14) { Left=625 Top=5 Width=30 Height=30 ColorOn=65280 ColorOff=0 } Add(LineBreak,3971698,714,21) { Caption="endList" Color=16776960 link(Out,13871021:doOff,[]) Primary=[8459432,-175,322] } Add(LineBreak,6918319,714,56) { Caption="startList" Color=16752639 link(Out,13871021:doOn,[(784,62)(784,34)]) Primary=[8109193,-686,98] } Add(Button,11163121,14,231) { Left=225 Top=55 Width=130 Caption="StartList" link(onClick,14443215:doEvent1,[]) } Add(Hub,14443215,63,231) { link(onEvent1,8109193:In,[(89,237)(89,181)(16,181)(16,160)]) link(onEvent2,13089735:doEvent1,[]) } Add(Edit,6032220,154,525) { Left=225 Top=5 Width=130 Ctl3D=1 Text="" link(Str,3080417:Var3,[(160,520)]) } Add(GetDataEx,3080417,112,511) { link(Data,11699194:Var,[]) } Add(Hub,12277073,91,581) { link(onEvent1,1100096:doProcedureData,[]) link(onEvent2,6032220:doText,[(113,594)(113,531)]) } Add(MainForm,6458067,14,7) { Left=20 Top=105 Width=780 Height=530 link(onCreate,16318049:doOperation,[(138,27)(138,132)]) } Add(ArrayRW,863698,623,182) { link(onRead,13803589:In,[]) link(Array,4313538:Array,[(629,92)(412,92)]) } Add(Hub,13089735,210,238) { InCount=2 link(onEvent1,1052212:doNext,[]) link(onEvent2,2839218:doCompare,[(236,251)(236,342)]) } Add(Counter,1052212,399,238) { Min=-1 Default=-1 Point(Max) Point(doMax) link(onNext,863698:doRead,[(605,244)(605,188)]) link(Max,16097507:Var1,[(405,191)]) } Add(If_else,2839218,399,336) { link(onTrue,16756399:doEvent1,[]) link(Op1,1052212:Count,[]) link(Op2,16097507:Var2,[(412,310)(475,310)]) } Add(Math,16318049,399,126) { OpType=1 Op2=1 ResultType=0 link(onResult,1052212:doMax,[(495,132)(495,295)(347,295)(347,265)]) link(Op1,4313538:Count,[]) } Add(Hub,16756399,469,336) { link(onEvent1,1052212:doReset,[(495,342)(495,301)(338,301)(338,258)]) link(onEvent2,8459432:In,[]) } Add(GetDataEx,16097507,462,182) { link(Data,16318049:Result,[(475,172)(405,172)]) }
да и что такое мультик динамический
|