Hi
I search funtion in lotuscript like keywords in formula. Do you know what function is it ?
Hi
I search funtion in lotuscript like keywords in formula. Do you know what function is it ?
Subject: Evaluate
WEll, you can always include @Keywords in a LotusScript Evaluate statement.
Subject: RE: Keywords in lotuscript
Here’s one that depends on already having your words in arrays so you don’t need delimiter characters.
Function Keywords(matchTerms, fullList, Byval compMethod As Integer) As Variant
On Error Goto oops
Redim result(Lbound(matchTerms) To Ubound(matchTerms)) As String
Dim intInd As Integer
intInd = Lbound(matchTerms)
Forall searchString In matchTerms
If Not Isnull(Arraygetindex(fullList, searchString, compMethod)) Then
Print "match " & searchString
result(intInd) = searchString
intInd = intInd + 1
End If
End Forall
If intInd = Lbound(matchTerms) Then
Keywords = Null
Else
Redim Preserve result(Lbound(matchTerms) To intInd - 1)
Keywords = result
End If
Exit Function
oops:
Error Err, Error & "//Keywords:" & Erl
End Function
If you want to allow use of delimiters then you might either use Split on your arguments (if there’s just one delimiter) or a custom function that splits a string into words in an array, and pass that array as an argument to this function.
Subject: Keywords in lotuscript
a conjunction of “for loop” and “arraygetindex” is what i have used in the past. if there is anything else you come across, do update me.