| Posted: 07:46pm 14 Nov 2020 |
Copy link to clipboard |
 Print this post |
|
Concat the values with |, do an INSTR?
If you wanted to be posh, you could pass an array and have the function do the concat
DIM contained AS Integer contained = ValueIn("|2|5|12|","2")
END
FUNCTION ValueIn(valuesToCheck As String, valueContained As String) As Integer ValueIn = (INSTR(valuesToCheck,"|"+valueContained+"|")>0) END FUNCTION |