Вверх ↑
Ответов: 113
Рейтинг: 1
#1: 2015-01-23 12:20:15 ЛС | профиль | цитата
как можно сделать сортировку строк в столбцах , в MT таблицах , в обычной получается а в этой непойму , что нужно .
 

Add(MainForm,2953706,21,105)
{
Width=1171
Height=679
link(onCreate,4282133:doFileExists,[])
}
Add(StringTable,7885584,903,308)
{
Left=5
Top=25
Width=130
Height=600
Font=[MS Sans Serif,15,0,0,1]
Grid=0
ColumnClick=1
Point(doSort)
Point(doSortDigit)
Point(onColumnClick)
Point(doAddColumn)
link(onColumnClick,15942436:doEvent1,[(969,321)(969,385)(864,385)(864,349)])
}
Add(Button,5197795,189,308)
{
Left=975
Top=25
Width=175
Height=55
link(onClick,13466227:doEvent1,[])
}
Add(SQLite_DB,16472772,364,98)
{
link(onOpen,6318783:doValue,[(411,104)(411,69)])
link(onError,16108056:doWork2,[])
link(FileName,1515463:Var2,[])
}
Add(SQLite_Query,10626812,280,322)
{
SQL="SELECT Komanda AS Команда,Region AS Регион FROM komanda"
link(onQuery,5541624:doEvent1,[(497,328)(497,517)])
link(onColumns,15779484:doEvent1,[(432,335)(432,370)])
link(onError,12689037:doWork,[(328,342)(328,349)])
link(dbHandle,921244:Var,[])
}
Add(SQLite_Exec,3825977,364,189)
{
SQL="CREATE TABLE komanda(Komanda TEXT,Region TEXT)"
link(onError,745351:doWork2,[])
link(dbHandle,16472772:dbHandle,[])
}
Add(SQLite_QueryScalar,8996381,336,616)
{
link(onError,10915840:doWork,[])
link(dbHandle,3803497:Var,[])
}
Add(FileTools,4282133,140,98)
{
link(onEnd,8500865:doEvent,[])
link(FileName,1515463:Var1,[(146,82)])
}
Add(IndexToChanel,8500865,217,98)
{
link(onEvent1,2103425:doEvent1,[])
link(onEvent2,14020676:doEvent2,[(269,111)(269,153)(313,153)(313,111)])
}
Add(Hub,2103425,280,98)
{
link(onEvent1,14020676:doEvent1,[])
link(onEvent2,3825977:doExec,[(308,111)(308,195)])
}
Add(Message,11283192,448,105)
{
}
Add(HubEx,16108056,406,105)
{
link(onEvent,11283192:doMessage,[])
}
Add(Hub,14020676,329,98)
{
InCount=2
link(onEvent1,16472772:doOpen,[])
}
Add(GlobalVar,921244,280,287)
{
Name="dbHandle"
}
Add(GlobalVar,6318783,441,63)
{
Name="dbHandle"
}
Add(LineBreakEx,12689037,343,343)
{
Caption="onError"
}
Add(LineBreakEx,1024915,343,238)
{
Caption="onError"
Type=1
link(OnEvent,745351:doWork3,[(410,244)])
}
Add(HubEx,745351,406,189)
{
Angle=3
link(onEvent,16108056:doWork3,[])
}
Add(Hub,13466227,245,308)
{
link(onEvent1,16757526:doEvent1,[])
link(onEvent2,10626812:doQuery,[(269,321)(269,328)])
}
Add(Edit,3914943,196,567)
{
Left=985
Top=145
Width=150
Text="1 строка"
}
Add(Edit,16679618,196,518)
{
Left=985
Top=190
Width=150
Text="2 строка"
}
Add(Button,2217314,196,616)
{
Left=1010
Top=230
Width=100
Height=35
link(onClick,6889541:doString,[])
}
Add(FormatStr,6889541,280,616)
{
Mask="INSERT INTO komanda values("%1","%2")"
link(onFString,8996381:doQuery,[])
link(Str1,3914943:Text,[(286,608)(202,608)])
link(Str2,16679618:Text,[(293,559)(202,559)])
}
Add(GlobalVar,3803497,336,553)
{
Name="dbHandle"
}
Add(LineBreakEx,10915840,399,623)
{
Caption="onError"
}
Add(Memory,2907292,364,35)
{
Default=String(mybase.db)
}
Add(GetDataEx,1515463,364,77)
{
link(Data,2907292:Value,[])
}
Add(Hub,15942436,875,343)
{
link(onEvent1,7885584:doSort,[])
link(onEvent2,7885584:doSortDigit,[])
}
Add(SQLite_Query,2391555,280,420)
{
SQL="SELECT Komanda AS Команда,Region AS Регион FROM komanda"
link(onError,8632446:doWork,[(328,440)(328,447)])
link(dbHandle,13545428:Var,[])
}
Add(GlobalVar,13545428,280,385)
{
Name="dbHandle"
}
Add(LineBreakEx,8632446,343,441)
{
Caption="onError"
}
Add(Hub,10453430,245,406)
{
link(onEvent2,2391555:doQuery,[(269,419)(269,426)])
}
Add(MT_Enum,16364596,539,371)
{
link(onItem,13898218:doStr,[])
}
Add(Hub,5541624,553,511)
{
OutCount=3
link(onEvent2,12133223:doStr,[])
link(onEvent3,10229221:doClear,[(592,531)(592,580)])
}
Add(MT_String,12133223,609,518)
{
link(onResult,10229221:doEvent1,[(660,524)(660,573)])
}
Add(MT_String,11644455,749,525)
{
link(onResult,3999343:doRowAction,[(807,531)(807,181)])
}
Add(MultiElementEx,10229221,679,567)
{
@Hint=#10:Добавить №|
link(onInsert,11644455:doMTString,[(730,573)(730,545)])
}
BEGIN_SDK
Add(EditMultiEx,926117,21,21)
{
WorkCount=#8:doEvent1|7:doClear|8:doClear1|
EventCount=#8:onInsert|8:onEvent2|
DataCount=#5:Array|
Width=713
Height=431
link(doEvent1,10528103:doAdd,[(217,27)(217,69)])
link(doClear,2910990:doEvent1,[(39,34)(39,160)])
link(doClear1,10528103:doClear,[(195,41)(195,76)])
}
Add(Insert,11229980,623,245)
{
SubStr="1"
link(onInsert,926117:onInsert,[(695,251)(695,27)])
link(SubStr,15414477:Value,[])
}
Add(Insert,2950603,574,245)
{
SubStr=";"
link(onInsert,11229980:doInsert,[])
}
Add(CounterEx,1399977,322,231)
{
Min=-1
Default=-1
Point(doMax)
Point(doReset)
link(onNext,1318163:doEvent1,[])
}
Add(Timer,14607937,224,203)
{
Interval=2
Enable=1
Point(doAutoStop)
link(onTimer,1399977:doNext,[(305,209)(305,237)])
}
Add(ArrayRW,2939535,427,245)
{
Point(Count)
link(onRead,2950603:doInsert,[])
link(Array,10528103:Array,[])
}
Add(DoData,6636987,112,231)
{
link(onEventData,8726984:doEvent1,[])
link(Data,2939535:Count,[(118,192)(473,192)(473,293)(440,293)])
}
Add(Hub,8726984,168,231)
{
OutCount=3
link(onEvent1,14607937:doAutoStop,[(203,237)(203,223)])
link(onEvent2,1399977:doMax,[])
}
Add(Hub,2910990,56,154)
{
OutCount=4
link(onEvent2,1399977:doReset,[(196,167)(196,251)])
link(onEvent3,14607937:doTimer,[(147,174)(147,209)])
link(onEvent4,6636987:doData,[(91,181)(91,237)])
}
Add(Hub,1318163,378,231)
{
OutCount=3
link(onEvent2,2394553:doOperation,[(404,244)(404,286)(310,286)(310,328)])
link(onEvent3,2939535:doRead,[])
}
Add(Memory,15414477,630,182)
{
}
Add(Math,2394553,322,322)
{
Op2=1
link(onResult,15414477:doValue,[(551,328)(551,188)])
link(Op1,1399977:Count,[])
}
Add(StrList,10528103,413,63)
{
}
END_SDK
Add(Hub,16757526,588,308)
{
OutCount=4
link(onEvent1,10229221:doClear1,[(655,314)(655,587)])
link(onEvent2,7885584:doClear,[])
link(onEvent3,14416421:doClear,[(641,328)(641,384)])
link(onEvent4,12631794:doClear,[(672,335)(672,251)])
}
Add(MT_String,13898218,602,371)
{
link(onResult,14416421:doAdd,[])
}
Add(MT_String,13021151,749,469)
{
link(onResult,16667631:doColAction,[(807,475)(807,237)])
}
Add(StrList,14416421,672,371)
{
Point(doInsert)
}
Add(ArrayEnum,10411923,686,469)
{
link(onItem,13021151:doStr,[])
link(Array,14416421:Array,[])
}
Add(Hub,15779484,462,364)
{
OutCount=3
link(onEvent1,2033581:doData,[(518,370)(518,419)])
link(onEvent2,16364596:doEnum,[])
link(onEvent3,10411923:doEnum,[(510,384)(510,475)])
}
Add(DoData,2033581,546,413)
{
Data=String(#)
link(onEventData,14416421:doInsert,[])
}
Add(Button,10477844,546,665)
{
Left=1025
Top=590
Data=String(Col1=500)
link(onClick,10812487:doData,[(597,671)(597,734)])
}
Add(Memo,236000,1141,378)
{
Left=975
Top=350
Width=170
Height=190
Font=[MS Sans Serif,14,0,0,1]
}
Add(DoData,1311066,896,539)
{
link(Data,16729562:Text,[])
}
Add(StrList,16729562,896,455)
{
Strings=#5:№=20;|11:Фамилия Имя|7:Команда|6:Разряд|6:Тренер|7:Возраст|
}
Add(ArrayEnum,5705915,973,539)
{
link(onItem,4287988:doMTString,[(1017,545)(1017,513)(975,513)(975,482)])
link(Array,16729562:Array,[(979,519)(916,519)])
}
Add(MT_String,4287988,987,462)
{
}
Add(MT_String,7774628,945,637)
{
Delimeter="="
}
Add(Edit,10498785,616,665)
{
Left=985
Top=560
Width=150
}
Add(DoData,10812487,616,728)
{
link(onEventData,7885584:doAddColumn,[(847,734)(847,363)])
link(Data,10498785:Text,[])
}
Add(MTStrTbl,6963536,826,56)
{
Left=150
Top=25
Width=775
Height=585
Name="tbl"
HeaderDragDrop=0
Grid=0
link(onColumnClick,14731607:doEvent1,[])
}
Add(MST_RowAction,3999343,833,175)
{
MSTControl="tbl"
}
Add(MST_ColAction,16667631,833,231)
{
MSTControl="tbl"
}
Add(MST_Clear,12631794,742,245)
{
ClearAll=0
MSTControl="tbl"
}
Add(MST_SortInCol,16280468,1043,161)
{
MSTControl="tbl"
Point(doSortDigit)
Point(doSortExtCmp)
Point(ExtCmp)
}
Add(MST_ColAction,15271585,1050,259)
{
Action=10
MSTControl="tbl"
Point(Index)
}
Add(Hub,14731607,924,63)
{
InCount=2
OutCount=5
link(onEvent3,2583167:doStr,[])
}
Add(MST_SortInCol,5705770,987,259)
{
MSTControl="tbl"
Point(doSortDigit)
}
Add(MST_ArrayCols,7004317,1127,217)
{
MSTControl="tbl"
}
Add(MT_String,2583167,987,77)
{
}

карма: 0
well done turner
0