|  | 
 
 发表于 2011-11-22 19:19:20
|
显示全部楼层 
| store.cont.这样只能访问Store的第一个位置,其他问题是不能访问的,如2楼所说,需要进行寻找,类似下面: ) q/ ^+ W8 `* [% m; V9 bis: Q" s& q1 m! E( ?7 \
 i,j:integer;
 ; B5 q' y/ ~/ y" {do- c$ }, l/ w# t
 print store.cont.name;
 + n4 f1 @6 n- z: E3 {, V        for i:=1 to store.ydim loop0 D' r: b7 C: V- P$ A& i/ _; S
 for j:=1 to store.xdim loop% z4 n; {& K6 A4 ?
 if store[i,j].cont/=void and store[i,j].cont.name= "" then
 7 k9 p( \, Y. R                          -------------------9 k/ P, a+ j& E, R) S! d$ B- G! y
 end2 A) f5 D4 G# r, b9 R  P/ ^3 p
 next;
 9 Y1 q. l2 G' h        next;" u7 b, H/ S6 G1 l2 J! @- U5 w
 end;
 | 
 |