Леонид писал(а):
7rm012, здесь
Add(MainForm,2953706,63,154)
{
Height=132
Caption="Первый раз в первый класс!"
link(onCreate,3226392:doRandomize,[(457,174)(457,265)])
}
Add(Edit,3421245,413,196)
{
Left=75
Top=5
Text="6"
DataType=2
link(onChange,12305315:doCompare,[])
}
Add(Label,10535381,364,196)
{
Left=10
Top=10
Width=66
Height=17
Caption="Кол - во [шт]"
}
Add(Label,11215073,357,294)
{
Left=10
Top=35
Width=34
Height=17
Caption="Макс."
}
Add(Edit,1004421,406,294)
{
Left=75
Top=30
Text="10"
DataType=2
link(onChange,3226392:doMax,[(458,300)(458,279)])
}
Add(Label,2463147,119,266)
{
Left=10
Top=60
Width=64
Height=17
Caption="Время [сек]"
}
Add(Edit,6883629,161,266)
{
Left=75
Top=55
Text="30"
DataType=2
link(onChange,16240659:doOperation,[])
}
Add(Button,272013,63,210)
{
Left=140
Top=55
Caption="Пуск"
Point(doCaption)
link(onClick,15207824:doNext,[])
}
Add(Edit,7754895,812,245)
{
Left=205
Top=45
Width=95
Height=30
Font=[MS Sans Serif,12,1,0,1]
Text=""
ClearAfterEnter=1
Point(doSetFocus)
link(onEnter,7891473:doCompare,[])
}
Add(Label,14996047,735,294)
{
Left=160
Top=10
Width=4
Height=4
Font=[MS Sans Serif,12,1,0,1]
Caption=""
}
Add(Counter,15207824,112,210)
{
Max=1
link(onNext,12199532:doEvent,[])
}
Add(IndexToChanel,12199532,161,210)
{
link(onEvent1,4892058:doEvent1,[])
link(onEvent2,573428:doEvent1,[(207,223)(207,237)])
}
Add(Hub,4892058,217,210)
{
link(onEvent1,11348986:doClear,[])
link(onEvent2,13633120:doStop,[(242,223)(242,258)])
}
Add(Hub,573428,217,231)
{
OutCount=3
link(onEvent1,7070058:doClear,[(305,237)(305,216)])
link(onEvent2,5072399:doWork1,[(354,244)])
link(onEvent3,13633120:doTimer,[])
}
Add(Memory,11348986,266,203)
{
Default=String(Пуск)
link(onData,7070058:doValue,[])
}
Add(Memory,7070058,315,203)
{
Default=String(Стоп)
link(onData,272013:doCaption,[(354,209)(354,195)(53,195)(53,216)])
}
Add(Timer,13633120,315,245)
{
Interval=30000
Enable=1
Point(doInterval)
link(onTimer,5072399:doWork2,[])
}
Add(For,7960498,406,252)
{
IncludeEnd=1
link(onEvent,3226392:doRandom,[])
link(onStop,15014415:doData,[(445,265)(445,314)])
link(End,3421245:Text,[])
}
Add(HubEx,5072399,350,245)
{
link(onEvent,15316148:doEvent1,[])
}
Add(Hub,15316148,364,245)
{
link(onEvent1,14742725:doEvent1,[(389,251)(389,230)])
link(onEvent2,7960498:doFor,[])
}
Add(Math,16240659,217,266)
{
OpType=2
Op2=1000
ResultType=0
link(onResult,13633120:doInterval,[(263,272)(263,265)])
}
Add(If_else,12305315,462,196)
{
Type=1
Op2=Integer(2)
link(onTrue,10971891:doClear,[])
}
Add(Memory,10971891,511,189)
{
Default=Integer(2)
link(onData,3421245:doText2,[(550,195)(550,181)(403,181)(403,209)])
}
Add(Random,3226392,476,252)
{
Min=1
Max=10
Point(doMax)
link(onRandom,9673797:doString,[])
}
Add(FormatStr,9673797,539,252)
{
Mask="%1 + %2"
link(onFString,169037:doValue,[])
link(Str2,8212379:Var1,[(552,243)(580,243)(580,292)])
}
Add(Memory,169037,595,252)
{
Default=String()
}
Add(DoData,15014415,595,308)
{
link(onEventData,16764089:doDelete,[])
link(Data,8212379:Var2,[])
}
Add(GetDataEx,8212379,595,287)
{
link(Data,169037:Value,[])
}
Add(Delete,16764089,644,308)
{
Count=3
Direction=1
link(onDelete,1774488:doEvent1,[(683,314)(683,258)])
}
Add(MathParse,587192,735,245)
{
Point(doMathStr)
}
Add(Hub,1774488,693,252)
{
OutCount=3
link(onEvent1,587192:doMathStr,[])
link(onEvent2,587192:doCalc,[(718,265)(718,251)])
link(onEvent3,14996047:doText,[(718,272)(718,300)])
}
Add(Hub,14742725,518,224)
{
link(onEvent1,5138657:doData,[])
link(onEvent2,169037:doClear,[(585,237)(585,265)])
}
Add(DoData,5138657,630,224)
{
link(onEventData,9147874:doEvent1,[])
}
Add(If_else,7891473,861,252)
{
link(onTrue,13676342:doClear,[])
link(onFalse,6296818:doClear,[(956,265)(956,258)])
link(Op1,587192:Result,[(867,243)(853,243)(853,285)(741,285)])
}
Add(Memory,13676342,917,245)
{
Default=String(Да!)
link(onData,6296818:doValue,[])
}
Add(Memory,6296818,966,245)
{
Default=String(Нет!)
link(onData,3226811:doWork2,[])
}
Add(Label,11361716,1022,245)
{
Left=315
Top=50
Width=4
Height=4
Font=[MS Sans Serif,12,1,0,1]
Caption=""
}
Add(Hub,9147874,672,224)
{
link(onEvent1,3226811:doWork1,[(1012,230)])
link(onEvent2,13112510:doEvent1,[(777,237)(777,258)])
}
Add(HubEx,3226811,1008,245)
{
link(onEvent,11361716:doText,[])
}
Add(Hub,13112510,784,252)
{
link(onEvent1,7754895:doText2,[])
link(onEvent2,7754895:doSetFocus,[])
}
Add(MainForm,2953706,63,154)
{
Height=132
Caption="Первый раз в первый класс!"
link(onCreate,3226392:doRandomize,[(457,174)(457,265)])
}
Add(Edit,3421245,413,196)
{
Left=75
Top=5
Text="6"
DataType=2
link(onChange,12305315:doCompare,[])
}
Add(Label,10535381,364,196)
{
Left=10
Top=10
Width=66
Height=17
Caption="Кол - во [шт]"
}
Add(Label,11215073,357,294)
{
Left=10
Top=35
Width=34
Height=17
Caption="Макс."
}
Add(Edit,1004421,406,294)
{
Left=75
Top=30
Text="10"
DataType=2
link(onChange,3226392:doMax,[(458,300)(458,279)])
}
Add(Label,2463147,119,266)
{
Left=10
Top=60
Width=64
Height=17
Caption="Время [сек]"
}
Add(Edit,6883629,161,266)
{
Left=75
Top=55
Text="30"
DataType=2
link(onChange,16240659:doOperation,[])
}
Add(Button,272013,63,210)
{
Left=140
Top=55
Caption="Пуск"
Point(doCaption)
link(onClick,15207824:doNext,[])
}
Add(Edit,7754895,812,245)
{
Left=205
Top=45
Width=95
Height=30
Font=[MS Sans Serif,12,1,0,1]
Text=""
ClearAfterEnter=1
Point(doSetFocus)
link(onEnter,7891473:doCompare,[])
}
Add(Label,14996047,735,294)
{
Left=160
Top=10
Width=4
Height=4
Font=[MS Sans Serif,12,1,0,1]
Caption=""
}
Add(Counter,15207824,112,210)
{
Max=1
link(onNext,12199532:doEvent,[])
}
Add(IndexToChanel,12199532,161,210)
{
link(onEvent1,4892058:doEvent1,[])
link(onEvent2,573428:doEvent1,[(207,223)(207,237)])
}
Add(Hub,4892058,217,210)
{
link(onEvent1,11348986:doClear,[])
link(onEvent2,13633120:doStop,[(242,223)(242,258)])
}
Add(Hub,573428,217,231)
{
OutCount=3
link(onEvent1,7070058:doClear,[(305,237)(305,216)])
link(onEvent2,5072399:doWork1,[(354,244)])
link(onEvent3,13633120:doTimer,[])
}
Add(Memory,11348986,266,203)
{
Default=String(Пуск)
link(onData,7070058:doValue,[])
}
Add(Memory,7070058,315,203)
{
Default=String(Стоп)
link(onData,272013:doCaption,[(354,209)(354,195)(53,195)(53,216)])
}
Add(Timer,13633120,315,245)
{
Interval=30000
Enable=1
Point(doInterval)
link(onTimer,5072399:doWork2,[])
}
Add(For,7960498,406,252)
{
IncludeEnd=1
link(onEvent,3226392:doRandom,[])
link(onStop,15014415:doData,[(445,265)(445,314)])
link(End,3421245:Text,[])
}
Add(HubEx,5072399,350,245)
{
link(onEvent,15316148:doEvent1,[])
}
Add(Hub,15316148,364,245)
{
link(onEvent1,14742725:doEvent1,[(389,251)(389,230)])
link(onEvent2,7960498:doFor,[])
}
Add(Math,16240659,217,266)
{
OpType=2
Op2=1000
ResultType=0
link(onResult,13633120:doInterval,[(263,272)(263,265)])
}
Add(If_else,12305315,462,196)
{
Type=1
Op2=Integer(2)
link(onTrue,10971891:doClear,[])
}
Add(Memory,10971891,511,189)
{
Default=Integer(2)
link(onData,3421245:doText2,[(550,195)(550,181)(403,181)(403,209)])
}
Add(Random,3226392,476,252)
{
Min=1
Max=10
Point(doMax)
link(onRandom,9673797:doString,[])
}
Add(FormatStr,9673797,539,252)
{
Mask="%1 + %2"
link(onFString,169037:doValue,[])
link(Str2,8212379:Var1,[(552,243)(580,243)(580,292)])
}
Add(Memory,169037,595,252)
{
Default=String()
}
Add(DoData,15014415,595,308)
{
link(onEventData,16764089:doDelete,[])
link(Data,8212379:Var2,[])
}
Add(GetDataEx,8212379,595,287)
{
link(Data,169037:Value,[])
}
Add(Delete,16764089,644,308)
{
Count=3
Direction=1
link(onDelete,1774488:doEvent1,[(683,314)(683,258)])
}
Add(MathParse,587192,735,245)
{
Point(doMathStr)
}
Add(Hub,1774488,693,252)
{
OutCount=3
link(onEvent1,587192:doMathStr,[])
link(onEvent2,587192:doCalc,[(718,265)(718,251)])
link(onEvent3,14996047:doText,[(718,272)(718,300)])
}
Add(Hub,14742725,518,224)
{
link(onEvent1,5138657:doData,[])
link(onEvent2,169037:doClear,[(585,237)(585,265)])
}
Add(DoData,5138657,630,224)
{
link(onEventData,9147874:doEvent1,[])
}
Add(If_else,7891473,861,252)
{
link(onTrue,13676342:doClear,[])
link(onFalse,6296818:doClear,[(956,265)(956,258)])
link(Op1,587192:Result,[(867,243)(853,243)(853,285)(741,285)])
}
Add(Memory,13676342,917,245)
{
Default=String(Да!)
link(onData,6296818:doValue,[])
}
Add(Memory,6296818,966,245)
{
Default=String(Нет!)
link(onData,3226811:doWork2,[])
}
Add(Label,11361716,1022,245)
{
Left=315
Top=50
Width=4
Height=4
Font=[MS Sans Serif,12,1,0,1]
Caption=""
}
Add(Hub,9147874,672,224)
{
link(onEvent1,3226811:doWork1,[(1012,230)])
link(onEvent2,13112510:doEvent1,[(777,237)(777,258)])
}
Add(HubEx,3226811,1008,245)
{
link(onEvent,11361716:doText,[])
}
Add(Hub,13112510,784,252)
{
link(onEvent1,7754895:doText2,[])
link(onEvent2,7754895:doSetFocus,[])
}
Что то не получается как в видео, числа появляются сразу, а не последовательно по интервалу и ответа нет. Спасибо за ответ, попробую дальше покопаться