~
function ChkNum(arrTest,key)
arrSplit = Split(arrTest, ",")
for i=0 to ubound(arrSplit)
if arrSplit(i)=key then
ChkNum=true
exit function
end if
next
ChkNum=false
end function
function result(str,snum)
str=","&str & ","
snum=","&snum &","
if instr(str,snum)>0 then
result=true
else
result=false
end if
end function
str="9,12,13,168,234"
response.write result(str,9)
response.write result(str,234)
function result(str,snum)
str=str & ","
snum=snum &","
if instr(str,snum)>0 then
result=true
else
result=false
end if
end function
str="9,12,13,168,234"
response.write result(str,1)
response.write result(str,12)