How to ignorecase when using string.text.contains?

后端 未结 9 904
情深已故
情深已故 2021-01-07 18:11

I am trying to figure out how to check if a string contains another while ignoring case using .text.contains.

As it stands right now If I do this:

 D         


        
9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-07 18:47

    What about this?

    
    Function InStr(s As String, find As String) As Boolean
        Return s.ToLower.Contains(find.ToLower)
    End Function
    

提交回复
热议问题