什么是CASE?
来源:百度知道 编辑:UC知道 时间:2024/05/27 17:28:01
我来说个最简单的:VB中的Case语句
Select Case a
Case 1
...
Case 2
...
Case Else
...
End Select
等价于
If a=1 Then
...
ElseIf a=2 Then
...
Else
...
End If
在程序里的话一般都可以解释为“假如,如果”
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/05/27 17:28:01
我来说个最简单的:VB中的Case语句
Select Case a
Case 1
...
Case 2
...
Case Else
...
End Select
等价于
If a=1 Then
...
ElseIf a=2 Then
...
Else
...
End If
在程序里的话一般都可以解释为“假如,如果”