Академический Документы
Профессиональный Документы
Культура Документы
Private Sub Command1_Click() 'Suma num1 = Text1.Text num2 = Text2.Text res = suma(num1, num2) Label1.Caption = "+" Text3.Text = res End Sub
Function suma(a As Integer, b As Integer) Dim res As Integer res = a + b suma = res End Function
Private Sub Command2_Click() num1 = Text1.Text num2 = Text2.Text res = resta(num1, num2) Label1.Caption = "-" Text3.Text = res End Sub Function resta(a As Integer, b As Integer)
End Function