likeoperatord.vb

来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 37 行

VB
37
字号
'Author:'   K. Satya Sudha (ksathyasudha@novell.com)'' (C) 2005 Novell, Inc.Imports SystemModule Test    Function Main() As Integer        Dim a As Boolean = "7" Like "?[]"        If a <> True Then            Throw New Exception("#A1 - Like operator failed")        End If        a = "7" Like "[]?"        If a <> True Then            Throw New Exception("#A2 - Like operator failed")        End If        a = "7" Like "[]*"        If a <> True Then            Throw New Exception("#A3 - Like operator failed")        End If        a = "7" Like "[]#"        If a <> True Then            Throw New Exception("#A4 - Like operator failed")        End If        a = "7" Like "#[]"        If a <> True Then            Throw New Exception("#A5 - Like operator failed")        End If    End FunctionEnd Module

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?