在窗体上画一个名称为Command1的命令按钮和两个名称分别为Text1、Text2的文本框,如图5所示,然后编写如下程序: Function Fun(x As Integer, ByVal y As Integer) As Integer x=x+y If x<0 Then Fun=x Else Fun=y End If End Function Private Sub Command1_Cli

时间:2024-05-04 14:28:40

相似题目