所以我以前找到了这篇文章How to check multiple conditions in rdlc expression里面有这段代码:
Public Function GetGender(ByVal val as String) As String
Dim retVal as String = ""
If(val = "1")
retVal = "Male"
Else If (val = "2")
retVal = "???"
Else If (val = "3")
retVal = "???"
Else
retVal = "???"
End If
Return retVal
End Function
此代码有效,但是要代替(val =“ 1”),我需要类似(val =“ th *”)的东西来搜索并替换所有包含th的东西,例如
val.StartsWith("th")
– Caius Jard这是答案,非常感谢Caius !!我是stackoverflow的新手,因此我仍在学习如何使用此站点。