|
treenode thelist = getvarnode(current,"componentlist"); U& G, d# p7 T/ J
treenode thesum = getvarnode(current,"targetcomponentsum");
/ I: m% M9 L/ V- c& s setnodenum(thesum,0);
4 j5 E6 H1 G0 T2 o; {
% G* c" e8 ]5 ^( |% l# \ {
+ W7 r2 U: V. _ setnodenum(cellrowcolumn(thelist,1,1),getlabelnum(first(current),"1"));7 C1 R3 v6 u" l5 E" _
inc(thesum,getlabelnum(first(current),"1"));! j$ @6 H$ i5 C3 l
setnodenum(cellrowcolumn(thelist,2,1),getlabelnum(first(current),"2"));
: a1 C# q5 P3 N; ^8 b+ t inc(thesum,getlabelnum(first(current),"2"));% h" x2 M! y3 U7 R% k+ Z9 N
setnodenum(cellrowcolumn(thelist,3,1),getlabelnum(first(current),"3"));
$ t8 j! K( [# q inc(thesum,getlabelnum(first(current),"3"));
$ g* O2 m3 j F1 g7 W* \ setnodenum(cellrowcolumn(thelist,4,1),getlabelnum(first(current),"4"));- _8 U+ m4 Y& h" c3 V
inc(thesum,getlabelnum(first(current),"4"));! U7 f4 Z; r* R) C1 g( e3 D
}5 P9 k0 P$ n" z8 F& E6 \3 U
} |
|