vb Code:
  1. Private Function MySearchMethod(ByVal b as Byte())
  2. 'Code here to read b and determine if it's the one you're looking for
  3. 'If it is,
  4. Return True
  5. 'else if it isn't
  6. Return False
  7. End Function


Then use:

vb Code:
  1. ids.Find(Addressof MySearchMethod)