|
不想写代码得话可以在临时实体流中发送至端口选项卡直接设定。% T% v+ _9 c3 e; N; B& g, e, P. d
写代码的话如下:1 N& o W6 z& V- X: I4 W) V* q
treenode tempobject;
$ [. B6 p1 V0 b$ @int curmincontent = 1000000000; # d7 |. w2 l r0 T) X( F/ E
double curminindex = 0;
% K( F* n& g# U2 j# L9 u- `8 _) q; ?( |6 T
for (int index = 1; index <= nrop(current); index++) {6 I7 P/ U3 u1 ?
tempobject = outobject(current, index);/ m/ x, W; |, @; z( e
if (opavailable(current,index) && content(tempobject) < curmincontent) {
. _- Y. Y9 m# J& f, Y curmincontent = content(tempobject);0 O% m; O6 b" A, q4 y0 O; |, d
curminindex = index;- A+ `3 N) F' F; O# ~6 b
}
; d; A5 x/ E3 M' y. ^) W% Q* }}
$ b3 T+ N" D2 d6 t" D E
' ~1 w- q- [0 g8 v% v) ^return curminindex ; |
|