28,398
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
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