ermutuxia 发表于 2013-6-13 14:15 
你增加一条if语句,如果tc大于p再运行不就行了
可以运行,但是之后!p就不是从60开始运行了,直接从109开始了,我是按下面的方式加的,如何可以使得program仍然按!p从60开始循环不影响之后的运行?
for !p=60 to 109
for !o=1 to 60
for !cv=0 to 10
if !tc<=109 then !tc=!p+!o and !tc<=120
else
!tc=110+!cv
endif
if !tc>!p then
smpl 1 !p
.....
endifnext
next
next