Published in: ASP
'accepts: value, array, convert values to integers (if passing in numbers) 'returns: boolean, if value is in array function IsInArray(value,string,bCint) IsInArray = false dim arr: arr = split(string,",") if isArray(arr) then dim iArr,arr2 for iArr = 0 to ubound(arr) if (bCint = 1) then value = cint(value) arr2 = cint(arr(iArr)) else arr2 = arr(iArr) end if if (value = arr2) then IsInArray = true exit function end if next end if end function
You need to login to post a comment.
