nesco писал(а): Ты сравниваешь текст, а не числа. Спасибо. Add(Label,1558936,224,77) { Left=120 Top=65 Width=42 Height=17 Caption="2 число" } Add(Label,964736,175,77) { Left=40 Top=65 Width=42 Height=17 Caption="1 число" } Add(MainForm,2953706,112,77) { Width=273 Height=212 } Add(StrList,1064858,203,133) { Strings=#9:0+00-2+00|10:9+95-14+65|11:14+65-16+88|17:19+25,21-18+52,56|17:11+55.25-12+75.45|17:14+20,01-12+75,45|0:| Point(doGetString) Point(onGetString) Point(IdxToSelect) link(onGetString,10866068:doText,[]) } Add(Edit,10866068,252,140) { Left=25 Top=20 Width=155 Text="" Alignment=2 link(onChange,12567048:doSplit,[]) } Add(Button,5992677,112,161) { Left=195 Top=20 Caption="1" Data=Integer(0) link(onClick,413932:doWork2,[]) } Add(Edit,209062,399,140) { Left=25 Top=45 Width=70 Text="" Alignment=2 link(onChange,11766519:doSplit,[(471,146)(471,209)]) } Add(Edit,13236794,399,182) { Left=100 Top=45 Width=80 Text="" Alignment=2 link(onChange,15881140:doSplit,[]) } Add(MultiStrData,12567048,301,140) { Char="-" link(onPart1,209062:doText,[]) link(onPart2,13236794:doText,[(375,153)(375,188)]) } Add(StrPart,11766519,511,203) { Char="+" Point(Left) Point(Right) link(onPart,646077:doStrCat,[(555,216)(555,237)(499,237)(499,258)]) } Add(Edit,15378552,623,301) { Left=25 Top=80 Width=70 Text="" Alignment=2 DataType=4 } Add(Edit,13058020,945,280) { Left=100 Top=80 Width=80 Text="" Alignment=2 DataType=4 link(onChange,9639823:doWork1,[(989,286)(989,370)(608,370)(608,405)]) } Add(StrPart,15881140,833,182) { Char="+" Point(Left) Point(Right) link(onPart,10900541:doStrCat,[(877,195)(877,216)(821,216)(821,237)]) } Add(Button,10376180,112,196) { Left=195 Top=45 Font=[MS Sans Serif,8,0,-16777211,1] Caption="2" Data=Integer(1) link(onClick,413932:doWork3,[(151,202)]) } Add(Button,6463543,112,231) { Left=195 Top=70 Caption="3" Data=Integer(2) link(onClick,1032009:doWork3,[(158,237)]) } Add(Button,2484167,112,266) { Left=195 Top=95 Caption="4" Data=Integer(3) link(onClick,7887439:doWork3,[(165,272)]) } Add(HubEx,413932,147,161) { link(onEvent,1032009:doWork2,[]) } Add(HubEx,1032009,154,161) { link(onEvent,7887439:doWork2,[]) } Add(HubEx,7887439,161,161) { link(onEvent,5182995:doWork2,[]) } Add(StrCat,646077,511,252) { link(onStrCat,12229279:doSplit,[]) link(Str1,11766519:Left,[]) link(Str2,11766519:Right,[]) } Add(StrCat,10900541,833,231) { link(onStrCat,4093011:doSplit,[]) link(Str1,15881140:Left,[]) link(Str2,15881140:Right,[]) } Add(StrPart,12229279,560,252) { Char="," Point(Left) Point(Right) Point(onNotFound) link(onPart,10763959:doStrCatDlm,[(603,265)(603,292)(548,292)(548,307)]) link(onNotFound,10072648:doData,[(611,272)(611,338)(503,338)(503,349)]) } Add(StrCatDelim,10763959,560,301) { Delimiter="." link(onStrCatDlm,9040088:doWork2,[]) link(Str1,12229279:Left,[]) link(Str2,12229279:Right,[]) } Add(StrPart,4093011,882,231) { Char="," Point(Left) Point(Right) Point(onNotFound) link(onPart,10974159:doStrCatDlm,[(925,244)(925,271)(870,271)(870,286)]) link(onNotFound,11395570:doData,[(930,251)(930,305)(821,305)(821,321)]) } Add(StrCatDelim,10974159,882,280) { Delimiter="." link(onStrCatDlm,6813557:doWork2,[]) link(Str1,4093011:Left,[]) link(Str2,4093011:Right,[]) } Add(DoData,10072648,511,343) { link(onEventData,9040088:doWork3,[(599,349)]) link(Data,646077:Result,[]) } Add(HubEx,9040088,595,301) { link(onEvent,15378552:doText,[]) } Add(DoData,11395570,833,315) { link(onEventData,6813557:doWork3,[(921,321)]) link(Data,10900541:Result,[]) } Add(HubEx,6813557,917,280) { link(onEvent,13058020:doText,[]) } Add(Button,16749159,112,301) { Left=195 Top=120 Caption="5" Data=Integer(4) link(onClick,5182995:doWork3,[(172,307)]) } Add(HubEx,5182995,168,161) { link(onEvent,16211113:doWork2,[]) } Add(Button,11135283,112,336) { Left=195 Top=145 Caption="6" Data=Integer(5) link(onClick,16211113:doWork3,[(179,342)]) } Add(HubEx,16211113,175,161) { link(onEvent,1064858:doGetString,[]) } Add(MultiElement,9639823,623,399) { link(onEvent1,12698915:doText,[]) link(onEvent2,6855266:doText,[]) link(Data1,15378552:Text,[]) link(Data2,13058020:Text,[(636,380)(951,380)]) } BEGIN_SDK Add(EditMulti,5567230,21,21) { EventCount=2 WorkCount=1 DataCount=2 VarCount=2 Width=363 Height=214 link(doWork1,9237053:doCompare,[(56,27)(56,83)]) link(Var1,2158870:Value,[(27,200)(335,200)]) link(Var2,6276175:Value,[(34,179)(321,179)]) } Add(DoData,16361803,168,77) { link(onEventData,15305908:doWork2,[]) link(Data,7571001:Var2,[]) } Add(DoData,15161451,238,119) { link(onEventData,1035248:doWork2,[]) link(Data,15144161:Var2,[]) } Add(Memory,6276175,315,77) { link(onData,5567230:onEvent1,[(365,83)(365,27)]) } Add(Memory,2158870,329,119) { link(onData,5567230:onEvent2,[(373,125)(373,34)]) } Add(Hub,7960474,133,77) { link(onEvent1,16361803:doData,[]) link(onEvent2,15161451:doData,[(158,90)(158,125)]) } Add(DoData,1960294,203,161) { link(onEventData,15305908:doWork3,[(284,167)]) link(Data,15144161:Var1,[(209,110)]) } Add(DoData,6555747,259,189) { link(onEventData,1035248:doWork3,[(298,195)]) link(Data,7571001:Var3,[(265,61)]) } Add(Hub,13381991,168,161) { link(onEvent1,1960294:doData,[]) link(onEvent2,6555747:doData,[(193,174)(193,195)]) } Add(GetDataEx,15144161,238,105) { link(Data,15580416:Var3,[(244,42)]) } Add(GetDataEx,7571001,168,56) { link(Data,9360498:Var3,[(174,49)]) } Add(HubEx,15305908,280,77) { link(onEvent,6276175:doValue,[]) } Add(HubEx,1035248,294,119) { link(onEvent,2158870:doValue,[]) } Add(If_else,9237053,70,77) { Type=1 link(onTrue,7960474:doEvent1,[]) link(onFalse,13381991:doEvent1,[(125,90)(125,167)]) link(Op1,9360498:Var2,[]) link(Op2,15580416:Var2,[]) } Add(GetDataEx,9360498,70,44) { Angle=3 link(Data,5567230:Data1,[(27,49)]) } Add(GetDataEx,15580416,77,37) { Angle=3 link(Data,5567230:Data2,[(34,42)]) } END_SDK Add(Edit,12698915,721,399) { Left=25 Top=105 Width=70 Text="" Alignment=2 } Add(Edit,6855266,665,406) { Left=100 Top=105 Width=80 Text="" Alignment=2 link(onChange,2965320:doOperation,[(709,412)(709,447)(611,447)(611,482)]) } Add(Math,2965320,623,476) { OpType=1 link(onResult,7378162:doOperation,[]) link(Op1,9639823:Var1,[]) link(Op2,9639823:Var2,[]) } Add(Math,7378162,672,476) { OpType=35 Op2=0.01 link(onResult,10747884:doText,[]) link(Op1,2965320:Result,[(678,467)(662,467)(662,519)(629,519)]) } Add(Edit,10747884,721,476) { Left=63 Top=135 Width=65 Text="" Alignment=2 ReadOnly=0 }
Редактировалось 1 раз(а), последний 2021-03-11 09:00:52
|