或者帮我看一下,下面的代码要怎么改啊~~
------------------------------------------
------------------------------------------
for i=0 to Highestlayer!
setlayer@ i
if i=0 and Layertype!<>0 then
print"请检查L1,TOP层定义错误或层排序有误!"
end if
if i=1 and layertype!<>3 then
print"请检查BOTTOM层,BOTTOM层定义错误或层排序有误!"
end if
if i=1 and layertype!=3 then
iFlag1=1
end if
if i=3 and layertype!=12 then
iFlag2=1
end if
if iFlag1+iFlag2=2 and (i=2 and layertype!<>11) then
print"请检查顶层阻焊,顶层阻焊定义错误或者排层错误!"
end if
if i=2 and layertype!=11 then
iFlag3=1
end if
if i=4 and layertype!=7 then
iflag4=1
end if
if iFlag3+iFlag4=2 and (i=3 and layertype!<>12) then
print"请检查底层阻焊,底层阻焊定义错误或排层错误!"
end if
…………
“Description: "duplicate label"
Line 32:
if i=3 and layertype!=11 then
________________________________________
这个……
“layertype!”整个是个变量?
不会吧……“!”怎么定义进变量啊……
for ……
if i=0 and layertype=0 then
iFlag1=1
end if
if i=3 and layertype=11 then
iFlag2=1
end if
next
if iFlag1+iFlag2=2 and (i=2 and layertype=3) then
msgbox "i=2 -> layertype=3"
else
msgbox "i=2 -> layertype<>3"
end if
while ……
if i=0 and layertype!=0 then
iFlag1=1
end if
if i=3 and layertype!=11 then
iFlag2=1
end if
if iFlag1+iFlag2=2 then
i=2
layertype!=3
end if
wend