|
不想写代码得话可以在临时实体流中发送至端口选项卡直接设定。
0 p: ~/ X0 l) C3 u8 b写代码的话如下:2 e8 d' a4 d4 ~
treenode tempobject;
" m% k: }4 T }* f* \int curmincontent = 1000000000;
! q. c p. Y4 g& G6 V4 ?. K2 _+ Zdouble curminindex = 0;
$ ]/ k }8 L$ h! I8 \: j3 O
9 h! \# M* ?3 ufor (int index = 1; index <= nrop(current); index++) {
& Q0 i- M8 L* X9 l tempobject = outobject(current, index);# Y$ K n9 W6 P3 G/ q- J
if (opavailable(current,index) && content(tempobject) < curmincontent) {
4 x4 |7 f1 U; _9 L# }# ? curmincontent = content(tempobject);
: p& Q. ?2 i) F) O curminindex = index;
- @3 E/ c0 r) R8 e& l2 b }: P$ R n, w. L& |# }" \+ k+ M
}) z" s( t& u% r7 }: Q/ j. y
3 s& |) `" ^1 T* i4 t( h# ^; w
return curminindex ; |
|