Suma
Publicado por patricio (47 intervenciones) el 15/09/2009 20:07:31
Hola, tengo la siguiente instruccion sin embargo al final la orden TextBox23.Text = a + b + c no me muestra el valor , que error tengo??? o que me falta??
Private Sub CommandButton11_Click()
Dim a As Double
Dim b As Double
Dim c As Double
If TextBox20.Text = "" Then
TextBox20.Text = 0
a = TextBox20.Text
If TextBox21.Text = "" Then
TextBox21.Text = 0
b = TextBox21.Text
If TextBox22.Text = "" Then
TextBox22.Text = 0
c = TextBox22.Text
Else
TextBox23.Text = a + b + c
End If
End If
End If
End Sub
Private Sub CommandButton11_Click()
Dim a As Double
Dim b As Double
Dim c As Double
If TextBox20.Text = "" Then
TextBox20.Text = 0
a = TextBox20.Text
If TextBox21.Text = "" Then
TextBox21.Text = 0
b = TextBox21.Text
If TextBox22.Text = "" Then
TextBox22.Text = 0
c = TextBox22.Text
Else
TextBox23.Text = a + b + c
End If
End If
End If
End Sub
Valora esta pregunta
0