28,376
社区成员




boolAllPositive = true
for i = 0 to ubound(split(sl,","))
set rs = server.createObject("adodb.recordset")
rs.open "select * from ck where id=" & id(i),conn,1,3
If not rs.eof then
sl =rs("sl") - (sl(i))
if sI <=0 then
boolAllPositive = false ‘这里不知道你是否包括不存在
end if
end If
rs.Close
Set rs = Nothing
Next
if boolAllPositive then
'所有的数是正数
else
'不是所有的数是正数
end if