Вверх ↑
Ответов: 8923
Рейтинг: 823
#1: 2018-09-23 22:05:02 ЛС | профиль | цитата
Правильно-ли в выложенных схемах отображаются в тексте формул MathParse операторы ">" и "<"
Схема скопирована при английской раскладке клавиатуры на компьютере:
En


Add(MainForm,2953706,77,35)
{
}
Add(Timer,4918723,77,84)
{
Interval=500
link(onTimer,8148123:doNext,[])
}
Add(MathParse,2625233,252,63)
{
DataCount=1
MathStr="%1 >= 5"
link(onResult,1790884:doString,[])
}
Add(Counter,8148123,126,84)
{
Max=9
link(onNext,9461412:doText,[])
}
Add(Label,9831457,336,63)
{
Left=70
Top=25
}
Add(Edit,9461412,175,84)
{
Left=45
Top=30
Width=25
Text="0"
DataType=2
link(onChange,606085:doEvent1,[])
}
Add(FormatStr,1790884,294,63)
{
DataCount=1
Mask=">=5 %1"
link(onFString,9831457:doText,[])
}
Add(MultiElementEx,5010077,252,112)
{
link(onCalc,5252892:doString,[])
}
BEGIN_SDK
Add(EditMultiEx,11656938,21,21)
{
WorkCount=#6:doCalc|
EventCount=#6:onCalc|
link(doCalc,5893568:doCalc,[(95,27)(95,62)])
}
Add(MathParse,5893568,133,56)
{
DataCount=1
MathStr="%1 >= 5"
link(onResult,11656938:onCalc,[(172,62)(172,27)])
}
END_SDK
Add(Label,10281124,336,112)
{
Left=70
Top=45
}
Add(FormatStr,5252892,294,112)
{
DataCount=1
Mask=">=5 %1"
link(onFString,10281124:doText,[])
}
Add(Hub,606085,217,84)
{
link(onEvent1,2625233:doCalc,[(242,90)(242,69)])
link(onEvent2,5010077:doCalc,[(242,97)(242,118)])
}

Схема скопирована при русской раскладке клавиатуры на компьютере:
Ru


Add(MainForm,2953706,77,35)
{
}
Add(Timer,4918723,77,84)
{
Interval=500
link(onTimer,8148123:doNext,[])
}
Add(MathParse,2625233,252,63)
{
DataCount=1
MathStr="%1 >= 5"
link(onResult,1790884:doString,[])
}
Add(Counter,8148123,126,84)
{
Max=9
link(onNext,9461412:doText,[])
}
Add(Label,9831457,336,63)
{
Left=70
Top=25
}
Add(Edit,9461412,175,84)
{
Left=45
Top=30
Width=25
Text="0"
DataType=2
link(onChange,606085:doEvent1,[])
}
Add(FormatStr,1790884,294,63)
{
DataCount=1
Mask=">=5 %1"
link(onFString,9831457:doText,[])
}
Add(MultiElementEx,5010077,252,112)
{
link(onCalc,5252892:doString,[])
}
BEGIN_SDK
Add(EditMultiEx,11656938,21,21)
{
WorkCount=#6:doCalc|
EventCount=#6:onCalc|
link(doCalc,5893568:doCalc,[(95,27)(95,62)])
}
Add(MathParse,5893568,133,56)
{
DataCount=1
MathStr="%1 >= 5"
link(onResult,11656938:onCalc,[(172,62)(172,27)])
}
END_SDK
Add(Label,10281124,336,112)
{
Left=70
Top=45
}
Add(FormatStr,5252892,294,112)
{
DataCount=1
Mask=">=5 %1"
link(onFString,10281124:doText,[])
}
Add(Hub,606085,217,84)
{
link(onEvent1,2625233:doCalc,[(242,90)(242,69)])
link(onEvent2,5010077:doCalc,[(242,97)(242,118)])
}

У кого какие работают?

--- Добавлено в 2018-09-23 22:13:30

А вот эта схема (перетаскивание и масштабирование картинки)
Операторы MathParse


Add(MainForm,2953706,245,98)
{
BorderStyle=6
Position=1
Point(onMouseWheel)
link(onCreate,11274015:doExecute,[])
link(onMouseWheel,13608179:doVouseWheel,[(284,125)(284,202)])
}
Add(Image,8187946,497,112)
{
Width=400
Height=300
Align=5
ViewStyle=0
Point(onMouseDown)
Point(onMouseUp)
Point(doCursor)
Point(Width)
Point(Height)
Point(MouseX)
Point(MouseY)
Point(onMouseMove)
link(onMouseDown,13608179:doMouseDown,[(556,125)(556,251)(395,251)(395,209)])
link(onMouseUp,13608179:doMouseUp,[(550,132)(550,244)(403,244)(403,216)])
link(onMouseMove,13608179:doMouseMove,[(543,139)(543,237)(410,237)(410,223)])
}
Add(ODialog,11274015,294,112)
{
Filter="JPG|*.jpg"
link(onExecute,15983934:doLoad,[])
}
Add(PictureStream,15983934,343,112)
{
link(onLoad,7478387:doEvent1,[])
}
Add(Bitmap,3040283,420,112)
{
Point(Width)
Point(Height)
}
Add(Hub,7478387,385,112)
{
link(onEvent1,3040283:doLoad,[])
link(onEvent2,13608179:doLoadPict,[(410,125)(410,195)])
}
Add(MultiElementEx,13608179,420,189)
{
link(onResult,8187946:doLoad,[(480,195)(480,118)])
link(onCursor,8187946:doCursor,[(487,202)(487,132)])
link(Bitmap,3040283:Bitmap,[])
link(Width,3040283:Width,[])
link(Height,3040283:Height,[])
link(WidthIm,8187946:Width,[(447,159)(510,159)])
link(HeightIm,8187946:Height,[(454,166)(517,166)])
link(MouseX,8187946:MouseX,[(461,173)(524,173)])
link(MouseY,8187946:MouseY,[(468,180)(531,180)])
}
BEGIN_SDK
Add(EditMultiEx,1708951,21,21)
{
WorkCount=#10:doLoadPict|12:doVouseWheel|11:doMouseDown|9:doMouseUp|11:doMouseMove|
EventCount=#8:onResult|8:onCursor|
DataCount=#6:Bitmap|5:Width|6:Height|7:WidthIm|8:HeightIm|6:MouseX|6:MouseY|
Width=517
Height=347
VOffset=42
HOffset=220
link(doLoadPict,1986013:doWork1,[(130,69)])
link(doVouseWheel,7726861:doCalc,[])
link(doMouseDown,15909678:doEvent1,[(74,83)(74,125)])
link(doMouseUp,6729202:doEvent1,[(48,90)(48,133)(193,133)(193,146)])
link(doMouseMove,16713091:doCompare,[(39,97)(39,300)])
}
Add(Resize,1216560,140,140)
{
Point(Result)
link(onResult,15765281:doWork1,[(179,146)(179,181)(130,181)])
link(Bitmap,1708951:Bitmap,[(146,32)(247,32)])
link(Width,4282820:Var2,[])
link(Height,5115877:Var1,[(160,117)])
}
Add(DoData,2121384,357,119)
{
Data=Integer(33)
link(onEventData,6901698:doWork2,[])
}
Add(DoData,3966544,364,126)
{
Data=Integer(5)
link(onEventData,6901698:doWork3,[(403,132)])
}
Add(MathParse,7726861,84,70)
{
MathStr="%0*exp(%1/6000)"
Default=1
link(onResult,1986013:doWork2,[])
}
Add(Math,1902629,147,70)
{
OpType=2
ResultType=0
link(onResult,6056371:doOperation,[])
link(Op1,1708951:Width,[(153,40)(254,40)])
link(Op2,12861602:Var2,[])
}
Add(Math,6056371,196,70)
{
OpType=2
ResultType=0
link(onResult,1216560:doResize,[(236,76)(236,105)(130,105)(130,146)])
link(Op1,1708951:Height,[(202,47)(261,47)])
link(Op2,12861602:Var3,[(209,61)])
}
Add(HubEx,1986013,126,70)
{
link(onEvent,1902629:doOperation,[])
}
Add(GetDataEx,12861602,154,56)
{
Angle=3
link(Data,7726861:Result,[(125,61)(125,110)(90,110)])
}
Add(Img_Copy,14828609,140,238)
{
Point(Width)
Point(Height)
link(onCopy,1708951:onResult,[(242,244)(242,69)])
link(Source,1216560:Result,[])
link(X,16412249:Result,[(153,201)(231,201)(231,331)(258,331)])
link(Y,15203882:Result,[(160,208)(224,208)(224,335)(307,335)])
link(Width,471886:Var1,[(167,187)])
link(Height,14277681:Var1,[(174,194)])
}
Add(Hub,15909678,301,119)
{
link(onEvent1,2121384:doData,[])
link(onEvent2,8417:doWork1,[(331,132)(331,201)(249,201)])
}
Add(Hub,6729202,301,140)
{
link(onEvent1,3966544:doData,[(342,146)(342,132)])
link(onEvent2,8765289:doClear,[(356,153)(356,237)])
}
Add(Memory,4457597,259,224)
{
Point(Data)
link(onData,9717943:doValue,[])
link(Data,4820844:Var2,[])
}
Add(Memory,9717943,308,224)
{
Point(Data)
link(onData,8765289:doValue,[])
link(Data,12056792:Var2,[])
}
Add(GetDataEx,4820844,259,210)
{
link(Data,1708951:MouseX,[(265,187)(282,187)])
}
Add(GetDataEx,12056792,308,210)
{
link(Data,1708951:MouseY,[(314,187)(289,187)])
}
Add(Memory,8765289,364,224)
{
Default=Integer(0)
}
Add(If_else,16713091,182,294)
{
Type=5
Op2=Integer(0)
link(onTrue,16412249:doCalc,[])
link(Op1,8765289:Value,[(188,285)(370,285)])
}
Add(MathParse,16412249,252,294)
{
DataCount=4
MathStr="((%0 - %1 + %2)>0)*((%0 - %1 + %2)<=(%3 -%4))*(%0 - %1 + %2) + ((%0 - %1 + %2)>(%3 -%4))*(%3 - %4)"
ResultType=0
link(onResult,15203882:doCalc,[])
link(X1,4820844:Var1,[(258,215)])
link(X2,4457597:Value,[])
link(X3,4282820:Var3,[(272,110)])
link(X4,471886:Var2,[(279,264)(237,264)])
}
Add(MathParse,15203882,301,294)
{
DataCount=4
MathStr="((%0 - %1 + %2)>0)*((%0 - %1 + %2)<=(%3 -%4))*(%0 - %1 + %2) + ((%0 - %1 + %2)>(%3 -%4))*(%3 - %4)"
ResultType=0
link(onResult,10678130:doEvent1,[(340,300)(340,342)(95,342)(95,272)])
link(X1,12056792:Var1,[(307,215)])
link(X2,9717943:Value,[])
link(X3,5115877:Var2,[(321,271)(202,271)])
link(X4,14277681:Var3,[(328,194)])
}
Add(Hub,10678130,105,266)
{
link(onEvent1,15765281:doWork3,[(130,272)])
link(onEvent2,8417:doWork2,[(207,279)(207,230)])
}
Add(HubEx,8417,245,224)
{
link(onEvent,4457597:doValue,[])
}
Add(HubEx,15765281,126,238)
{
link(onEvent,14828609:doCopy,[])
}
Add(GetDataEx,4282820,147,105)
{
link(Data,1902629:Result,[])
}
Add(GetDataEx,5115877,196,112)
{
link(Data,6056371:Result,[])
}
Add(GetDataEx,471886,231,182)
{
Angle=1
link(Data,1708951:WidthIm,[(251,187)(251,55)(268,55)])
}
Add(GetDataEx,14277681,252,189)
{
link(Data,1708951:HeightIm,[(258,63)(275,63)])
}
Add(HubEx,6901698,399,119)
{
Angle=3
link(onEvent,1708951:onCursor,[(403,76)])
}
END_SDK


--- Добавлено в 2018-09-23 22:21:42

Вот, блин, всё нормально, а в личке два раза перевыкладывал, и получал вместо "<>" кавычки и MathParse ошибку выдавал
карма: 19

0
Редактировалось 2 раз(а), последний 2018-09-23 22:21:42