Posted By

jlvallelonga on 09/25/09


array is Value ASP find in contains

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


contains value

 / Published in: ASP

This function returns whether or not the value was found in the array

  1. function containsValue(arrayName, valueToFind)
  2. found = false
  3. for x = 0 to ubound(arrayName)
  4. if arrayName(x) = valueToFind then
  5. found = true
  6. end if
  7. next
  8. containsValue = found
  9. end function

Report this snippet  

You need to login to post a comment.