|
哪位老大能帮忙看看我这个源代码选择语句出什么问题了,第一次用选择语句,没太搞明白,两个功能单独都能用,但用选择语句控制就只能执行第二个功能,希望能得到解决,多谢,源代码如下:3 f% |. W0 y3 b. B% t2 h3 M/ w
entity/obj $$定义实体/ l! S0 n& C& f! ^- o, s' c4 s! O( b
number/sln $$定义实体数量
7 R8 q6 Q# f1 T/ o4 Z( Dnumber/col $$定义颜色数量* M% V: H- @+ W, f, U: a* ]
number/lyr $$定义层数量) t' Y4 b0 h) d J/ ?4 e
data/col,1 $$赋颜色数量值
4 E- \# N u b. F; Zdata/lyr,1 $$赋图层数量值
- V3 x0 R2 F$ wl10:
) A' `( v9 y- Kchoose/'选择图层移动的方式','自动分层','设置默认层',resp
, i, s% W: r6 K* sjump/l10:,trm:,,,l20:,l30:,resp$ Z2 ]9 H1 I5 f/ \- g$ R7 @. }
l20:" F3 }& d% R. K
INEXTE/ALL $$初始化实体8 N* O6 J* q2 f* z9 E; u. q; Q/ y( `$ `
sln=0 $$实体数量起始值! j! B! ^5 Q5 z3 N" S, \+ t0 V
lyr=0 $$图层数量起始值
6 Y. O+ }: g, pcol=0 $$颜色数量起始值: h/ l& x) k9 z' n( N
sln=sln+1
3 T6 z6 S& ~. i, q2 bobj=NEXTE/IFEND,trm: $$选择下一实体
: H, d; J, F: p L, P) k: Q5 ylyr=lyr+1
9 M5 t' s f: }# I) ^: C% p" z) yif/lyr>256,lyr=lyr-256
& \0 F- `8 E# f. A, t. L$ pcol=col+1
( n+ @4 J3 T) t, W. h9 H) Uif/col>15,col=col-15
. m+ o$ |8 E8 E/ A0 Q. b&layer(obj)=lyr $$赋图层
( X2 A. s% k/ H" Z6 o# k' i, r&color(obj)=col $$赋颜色3 S1 k9 b. `& u3 A$ W6 E. p+ L
jump/trm:
3 z( S. J7 G* b) B+ X( g' Q9 H2 Al30:7 z5 ]8 P7 T* e6 w4 w9 P+ }$ l1 C& h
cat/'c101',50
1 F9 |7 [3 w, Icat/'c102',51
6 w- J% O1 E2 J7 M6 Qcat/'c103',52
6 C$ l, f7 g4 a, Mcat/'c104',536 s) y% ~* L' L( h: ?
cat/'c105',544 j) N+ x8 h4 k0 H- b; T
cat/'c106',55
2 f: X* w9 v2 Ccat/'c107',56& |5 q8 o, w4 e! F' M8 K N
cat/'c108',57. S4 t1 h6 J- b( v
cat/'c109',58
( B$ h( X6 K4 N- h* ?/ c6 l0 bcat/'c110',595 c) E% V8 x; d7 R% S+ U
cat/'c201',60
* A: }% d' O% H, D, n1 L2 gcat/'c202',61" b- z' t3 j0 R) ~9 g
cat/'c203',62
, Y7 C" ^4 j- z* R9 `$ C! @1 D1 ]cat/'c204',63& e( }* H8 C; r. d! u
cat/'c205',64
! |& G) d% w% O& r5 H* kcat/'c206',65
9 w" \3 d- [9 X. M) L4 `# w! u4 ocat/'c207',667 R% _9 H# }2 \9 Z7 K, L
cat/'c208',67! Z( v9 {; _ s2 w
cat/'c209',688 x- T! ~$ {) o& R! [2 X. ^/ C
cat/'c210',697 i( \* L$ k# }6 W- p9 n
cat/'c3a01',70
# n6 y3 a' C+ x8 a3 d* k$ V" f6 Ycat/'c3a02',71- r4 _2 w: Y. p6 A# _6 R! a' k
cat/'c3a03',72$ J4 y" ?# c1 Z9 z2 n3 [9 e9 }
cat/'c3a04',736 T( ^/ |& T$ [" g J9 w9 l& s8 O8 G
cat/'c3a05',74
* i) `6 `+ l% D: acat/'c3a06',75; _" u1 ^0 z6 m& g' ]2 W
cat/'c3a07',769 q# Q* {& j+ V/ W& d" p8 v
cat/'c3a08',77
1 X* E0 }( P& `0 Q5 Ocat/'c3a09',78
9 R2 e2 l% {5 W3 ~9 d+ o. mcat/'c3a10',79/ o* K L z' R$ C& c! h u2 l
cat/'c3b01',80
4 F$ w) |7 ^! [% Wcat/'c3b02',81
, H, \" c* s4 ^ _# X3 |" |& _cat/'c3b03',82
, T' L3 r R; P2 Z9 Icat/'c3b04',83
8 E5 e) L& Q4 E5 x+ K) vcat/'c3b05',84* d) e) Z: S9 S# E! W9 |
cat/'c3b06',85
: A$ E E. q0 J3 }2 Wcat/'c3b07',86
# _# e& ?! I+ C4 S: a9 j# jcat/'c3b08',87
$ k/ [+ h1 T4 L b! j3 Z6 E$ U% p; ~cat/'c3b09',88
3 }# s3 Q! I) ?6 n/ j1 ucat/'c3b10',89' l7 r/ K2 J5 k* m8 ~
jump/trm:, }' R5 G& d1 c) P
trm:
" z9 m/ ]( b; R. c+ U8 Dhalt |
|