看看这段代码的逻辑错在哪?
for i=0 to ubound(ucontArr)if instr(urs("pWorkGoods"),ucontArr(i))>0 thenif strID="" then strID=urs("pWorkID")elsestrID=strID&","&urs("pWorkID") '这句有错误吗?end ifexit forend ifnext
strID=""for i=0 to ubound(ucontArr)if instr(urs("pWorkGoods"),ucontArr(i))>0 thenif strID="" then strID=urs("pWorkID")elsestrID=strID & "," & urs("pWorkID") '这句有错误吗?end ifexit forend ifnext