Вверх ↑
Разработчик
Ответов: 26155
Рейтинг: 2127
#1: 2015-02-27 20:09:30 ЛС | профиль | цитата
Gunnman писал(а):
И других без использования For не придумать видимо...

А в компоненте for разве не нужен

Вот тебе преобразование матрицы в MT

Add(dbMySQL_Query,12993682,224,406)
{
link(onResult,4973548:doEvent1,[])
}
Add(For,5343505,378,413)
{
IncludeEnd=1
link(onEvent,16230326:doEvent1,[])
link(End,12993682:RCount,[(391,397)(363,397)(363,453)(244,453)])
}
Add(MatrixRW,6148320,357,476)
{
link(onRead,13045370:doAdd,[])
link(Matrix,12993682:Rows,[(363,467)(230,467)])
link(X,5518931:Position,[(377,460)(468,460)])
link(Y,5343505:Position,[])
}
Add(For,5518931,462,420)
{
IncludeEnd=1
link(onEvent,6148320:doRead,[(501,426)(501,517)(347,517)(347,482)])
link(onStop,6943330:doAdd,[(578,433)(578,482)])
link(End,12993682:FCount,[(475,390)(356,390)(356,446)(251,446)])
}
Add(MT_Add,13045370,532,476)
{
InputMT=1
link(onAdd,12609263:doValue,[(571,482)(571,349)(522,349)(522,363)])
link(Data,5201478:Var2,[])
}
Add(MT_Memory,12609263,532,357)
{
}
Add(Hub,4973548,280,406)
{
link(onEvent1,6902661:doWork2,[(326,412)(326,370)])
link(onEvent2,5343505:doFor,[])
}
Add(MT_Add,6943330,602,476)
{
InputMT=2
link(onAdd,10354002:doWork,[])
link(Data,5201478:Var3,[(608,439)])
}
Add(GetDataEx,5201478,532,434)
{
link(Data,12609263:Value,[])
}
Add(Hub,16230326,427,413)
{
link(onEvent1,6902661:doWork3,[(452,419)(452,412)(501,412)])
link(onEvent2,5518931:doFor,[])
}
Add(HubEx,6902661,497,364)
{
link(onEvent,12609263:doClear,[])
}
Add(Check,5491425,168,406)
{
Caption="In"
link(onEvent,12993682:doQuery,[])
}
Add(Check,10354002,665,476)
{
Caption="Out"
}

карма: 22

0