Académique Documents
Professionnel Documents
Culture Documents
crosas = 4
cclaveles = 1.5
clilis = 2
cazucenas = 6
subtotal = 0
descuento = 0
recargo = 0
total = 0
End Sub
Private Sub cmdlimpiar_Click() 'limpia todas las cacillas o inicializa el programa
optefectivo.Value = False
optcredito.Value = False
optdebito.Value = False
optcheque.Value = False
chkrosas.Value = 0
chklilis.Value = 0
chkazucena.Value = 0
chkclavel.Value = 0
txtremitente = ""
txtdestinatario = ""
txtmensaje = ""
txtrosas = ""
txtlilis = ""
txtazucenas = ""
txtclaveles = ""
txttotalflores = ""
txtsubtotal = ""
txtrecargo = ""
txtdescuento = ""
txtgrantotal = ""
frmflores.Visible = False
frmpago.Visible = False
cmdcalcular.Visible = False
End Sub
a=0
If chkrosas.Value = 1 Then
If IsNumeric(txtrosas) Then
frmpago.Visible = True
a = a + Val(txtrosas)
Else
MsgBox "Ingrese cuantas rosas desea", vbCritical, "Valor Invalido"
txtrosas = ""
txtrosas.SetFocus
End If
End If
txttotalflores = Str(a)
If chkclavel.Value = 1 Then
If IsNumeric(txtclaveles) Then
frmpago.Visible = True
a = a + Val(txtclaveles)
Else
MsgBox "Ingrese cuantos claveles desea", vbCritical, "Valor Invalido"
txtclaveles = ""
txtclaveles.SetFocus
End If
End If
txttotalflores = Str(a)
If chklilis.Value = 1 Then
If IsNumeric(txtlilis) Then
frmpago.Visible = True
a = a + Val(txtlilis)
Else
MsgBox "Ingrese cuantos lilis desea", vbCritical, "Valor Invalido"
txtlilis = ""
txtlilis.SetFocus
End If
End If
txttotalflores = Str(a)
If chkazucena.Value = 1 Then
If IsNumeric(txtazucenas) Then
frmpago.Visible = True
a = a + Val(txtazucenas)
Else
MsgBox "Ingrese cuantas azucenas desea", vbCritical, "Valor Invalido"
txtazucenas = ""
txtazucenas.SetFocus
End If
End If
txttotalflores = Str(a)
End Sub
Private Sub cmdsalir_Click() 'finaliza el programa
End
End Sub
Private Sub optcredito_Click() 'aparecer boton calcular si esta selecciona una forma de pago
cmdcalcular.Visible = True
End Sub
Private Sub optcheque_Click() 'aparecer boton calcular si esta selecciona una forma de pago
cmdcalcular.Visible = True
End Sub
Private Sub optdebito_Click() 'aparecer boton calcular si esta selecciona una forma de pago
cmdcalcular.Visible = True
End Sub
Private Sub optefectivo_Click() 'aparecer boton calcular si esta selecciona una forma de pago
cmdcalcular.Visible = True
End Sub