Add(MainForm,2953706,21,280) { Width=895 Height=147 Caption="Программка для поиска неизвестного числа." Position=1 } Add(Edit,8206533,301,175) { Left=20 Top=25 Width=845 Height=25 Font=[MS Sans Serif,10,1,0,1] Text="" } Add(MathParse,152895,504,343) { DataCount=0 MathStr="" ResultType=0 Point(doMathStr) Point(onError) link(onResult,11679362:doEvent1,[]) link(onError,2766467:doData,[]) } Add(StrPart,11714778,301,224) { Char="=" DirectEvent=0 Point(Left) link(onSplit,6405590:doValue,[]) link(onPart,9774525:doReplace,[(354,237)(354,356)]) link(Str,8206533:Text,[]) } Add(Memory,6405590,700,224) { } Add(If_else,10677636,693,343) { link(onTrue,13569667:doData,[]) link(Op2,6405590:Value,[]) } Add(Replace,9774525,392,350) { SubStr="x" link(onReplace,5447321:doEvent1,[]) link(Dest,5282044:Var2,[]) } Add(Math,6225919,406,273) { Op2=1 Default=1 Point(doClear) link(onResult,7808990:doText,[]) link(Op1,5282044:Var1,[(412,261)(390,261)(390,317)]) } Add(GetDataEx,5282044,406,312) { link(Data,6225919:Result,[]) } Add(Hub,14357105,259,273) { link(onEvent1,6225919:doOperation,[]) link(onEvent2,7924362:doWork3,[(291,286)]) } Add(DoData,13569667,756,343) { link(onEventData,12194971:doEvent1,[(800,349)(800,452)(19,452)(19,328)]) link(Data,5282044:Var3,[(762,317)]) } Add(Edit,139779,161,336) { Left=760 Top=70 Width=105 Font=[MS Sans Serif,8,1,0,1] Text="Ответ" } Add(Edit,7808990,504,273) { Left=20 Top=70 Width=75 Enabled=1 } Add(Hub,5447321,448,350) { link(onEvent1,152895:doMathStr,[]) link(onEvent2,152895:doCalc,[(483,363)(483,349)]) } Add(Timer,8018363,210,273) { Interval=1 Enable=1 link(onTimer,14357105:doEvent1,[]) } Add(Hub,11679362,630,343) { link(onEvent1,10677636:doCompare,[]) link(onEvent2,10409544:doText,[(654,356)(654,405)]) } Add(Edit,10409544,665,399) { Left=100 Top=70 Width=75 Enabled=1 } Add(Hub,12194971,42,322) { OutCount=3 link(onEvent1,5320316:doStop,[(70,328)(70,237)]) link(onEvent2,10408390:doWork3,[(144,335)]) link(onEvent3,139779:doText,[]) } Add(Button,8829311,21,98) { Left=585 Top=70 Width=80 Caption="Сброс" link(onClick,5448775:doEvent1,[]) } Add(Hub,5448775,84,98) { OutCount=7 link(onEvent1,8510139:In,[]) link(onEvent2,5971291:In,[]) link(onEvent3,13609834:In,[]) link(onEvent4,4800977:In,[]) link(onEvent5,12537695:In,[]) link(onEvent6,6628266:In,[]) link(onEvent7,2454654:In,[]) } Add(LineBreak,16192335,252,175) { Color=255 link(Out,15032754:doWork2,[]) Primary=[8510139,-140,-77] } Add(LineBreak,4164423,343,280) { Color=255 link(Out,6225919:doClear,[]) Primary=[5971291,-231,-175] } Add(LineBreak,7225514,462,280) { Color=255 link(Out,7808990:doText2,[]) Primary=[13609834,-350,-168] } Add(LineBreak,4737544,623,406) { Color=255 link(Out,10409544:doText2,[]) Primary=[4800977,-511,-287] } Add(LineBreak,3196772,112,343) { Color=255 link(Out,139779:doText2,[]) Primary=[12537695,0,-217] } Add(Hub,3347926,161,224) { link(onEvent1,7924362:doWork2,[]) link(onEvent2,8018363:doTimer,[(185,237)(185,279)]) } Add(LineBreak,14957359,84,280) { Color=255 link(Out,10408390:doWork2,[]) Primary=[6628266,28,-147] } Add(StyleXP,10103435,21,168) { } Add(TimeCounter,5320316,84,224) { link(onStart,3347926:doEvent1,[]) link(onStop,9555273:doText,[(141,237)(141,181)]) } Add(HubEx,10408390,140,280) { link(onEvent,8018363:doStop,[]) } Add(Edit,9555273,210,175) { Left=180 Top=70 Width=125 Enabled=1 Text="Время в мс" } Add(Button,517472,21,224) { Left=675 Top=70 Width=80 Caption="Найти" link(onClick,5320316:doStart,[]) } Add(LineBreak,6139657,168,182) { Color=255 link(Out,9555273:doText2,[]) Primary=[2454654,-56,-42] } Add(Button,8572546,213,129) { Left=310 Top=70 Width=80 Caption="Пример" Data=String(8113-(10101-x)=5207) link(onClick,13083270:doWork2,[]) } Add(HubEx,15032754,287,175) { link(onEvent,8206533:doText,[]) } Add(HubEx,13083270,287,129) { Angle=1 link(onEvent,15032754:doWork1,[]) } Add(DoData,2766467,560,350) { Data=String(Ошибка!) link(onEventData,13083270:doWork3,[(618,356)(618,135)]) } Add(HubEx,7924362,287,224) { link(onEvent,11714778:doSplit,[]) }