You are on page 1of 3

Public Sub Command1_Click()

Dim porcentaje, subtotal As Double

Dim costod As Integer

If Option1.Value = True Then

porcentaje = 0.2

End If

If Option2.Value = True Then

porcentaje = 0.1

End If

costod = CInt(costo.Text)

subtotal = costo + (costo * porcentaje)

Text1 = subtotal

End Sub

Private Sub Form_Load()

combo1.AddItem "Conviasa"

combo1.AddItem "Air Canada"

combo1.AddItem "Air France"

combo1.AddItem "LATAM Airlines Group"

combo1.AddItem "Avianca"

End Sub

Private Sub Command2_Click()

List1.AddItem "Rusia"
List1.AddItem "Brasil"

List1.AddItem "Colombia"

List1.AddItem "Venezuela"

List1.AddItem "Estados Unidos"

List1.AddItem "Italia"

List1.AddItem "España"

List1.AddItem "Francia"

List1.AddItem "China"

List1.AddItem "Japon"

Dim total, subtotal As Double

If Option3.Value = True Then

porcentaje = 0.05

End If

If Option4.Value = True Then

porcentaje = 0.02

End If

total = Text1.Text - (Text1.Text * porcentaje)

Text3 = total

End Sub

Private Sub Command3_Click()

Nombre.Text = ""

Ced.Text = ""

costo.Text = ""

Text1.Text = ""
End Sub

Private Sub Command5_Click()

Label5 = Nombre.Text + " con la cedula " + Ced.Text + " pagara un subtotal de " + Text1.Text +
" y un total de " + Text3.Text

End Sub

Private Sub Command4_Click()

End

End Sub

You might also like