for local i := 1 to parttab.yDim loop! D# X l( A4 Z: H; G" A
0 |" a' J) [. @+ G& E4 t# c% b2 `, N for local j := 1 to parttab.xDim loop; J/ j/ C$ d6 Q
3 i5 S _0 k' U( @, F5 u
part := parttab[j,i];
8 Y# m/ p: s$ j. w
" \1 u$ E8 ` m. w" M DestinationTab.setCursor(1,1);
/ _) l7 J' [! v& d; b- @7 M0 U8 j if not DestinationTab.find(track) then
( R+ R" P. S+ C' k DestinationTab[1, DestinationTab.yDim + 1] := track;
2 D" o8 O7 U% S, e/ W5 S9 h7 `8 M end;& S/ w' f8 x* k O( j
next;! B$ b& n* n6 i0 J7 l
5 A2 D% `; f6 a- n) i6 h
next;
. O. @& i2 N ?% A) i
7 y) `6 C" j( R$ m3 a5 c* g& l0 E$ G% P -- sort destination table
3 K2 b5 ~! W4 k! {3 R% G# B- u DestinationTab.sort(1,"up"); ( W; s' V T8 V+ _# i$ S0 ?
7 {: i! _2 D% w5 E9 J# R @.Destination := DestinationTab;+ X; X; v o, R+ P2 ]% i/ o$ A1 N
% g+ C# g6 B5 f- v2 y% b8 rend;( ]. \. {4 o+ ?7 ~7 m4 B2 l9 N
新人求教,红色部分解释下吧,多谢 |