|
不想写代码得话可以在临时实体流中发送至端口选项卡直接设定。. v) \6 b5 G; |' T9 k9 p
写代码的话如下:! X- E& r. i* j% }4 k) y
treenode tempobject;/ b5 M7 D- ~# q) s r0 l
int curmincontent = 1000000000; 0 ~3 a c" ^* g2 W) T, f
double curminindex = 0;
& @' g# Q7 o7 D4 O) ^0 a" J3 G& @+ P4 t
for (int index = 1; index <= nrop(current); index++) {+ R. `9 j% Q5 C0 k0 L3 R/ P9 B
tempobject = outobject(current, index);- _$ n Z P6 p" B( u
if (opavailable(current,index) && content(tempobject) < curmincontent) {
' M; b, L1 ~) e( F$ b* H2 f( k curmincontent = content(tempobject); f8 s$ J1 |6 N- B/ R1 E2 d$ V: Q( [
curminindex = index;
7 w0 u6 c S8 p: H }
6 L" `$ n; r; G/ g C @+ W}
, F/ [! Q t q5 w t/ {$ v( J b# }$ L/ c, \4 E. A/ ~% w
return curminindex ; |
|