Domino Code Fragment

Code Name*
isInArray function in LotusScript
Date*
10/97
Source (or email address if you prefer)*
Jamie Magee
IP address:.18.117.153.38
Description*
Returns true if string is contained in the array
Type*
LotusScript
Categories*
List Processing/Sorting
Implementation:
None (plug and play)
Required Client:
Server:
Limitations:
Comments:
When the array is already in a Notes item, it might be more efficient to simply use the built-in LotusScript NotesItem method...

flag = notesItem.Contains( value )
Files/Graphics attachments (if applicable): Code:

Function isInArray(v As String, arr) As Integer
    isInArray = False
    For r = 1 To Ubound(arr)
         If (arr(r) = v) Then
              isInArray = True
              Exit For
         End If
    Next
End Function