Private Function getstring(inputbox As Integer) As String Select Case inputbox Case 1 getstring = "哈哈" Case 2 getstring = "呵呵" Case Else End Select End Function
Private Sub Cmd1_Click() Label1.Caption = getstring(inputbox as Integer) as String Label1.Caption = "case 2"
End Sub
不行啊,它说有问题