Documente Academic
Documente Profesional
Documente Cultură
Basic N
SISTEMA DE FACTURACIN
Docente expositor: Lic. Jaime A. Flores Fuentes
Programando el Form1
End Sub
End Sub
End
End Sub
Programando el Form2
Programando el Comando Calcular
Private Sub Command1_Click()
Dim dias As Integer, costo As Integer, cable As Integer, telefono
As Integer, bar As Integer, hospedaje As Integer, servicio As
Integer, total As Integer, igv As Integer, netos As Integer
dias = Val(Text2.Text)
If Option1.Value = True Then costo = 50
If Option2.Value = True Then costo = 70
hospedaje = costo * dias
Text3.Text = Str(hospedaje)
If Check1.Value = vbChecked Then cable = 20
If Check2.Value = vbChecked Then telefono = 20
If Check3.Value = vbChecked Then bar = 20
servicio = cable + telefono + bar
Text4.Text = Str(servicio)
total = hospedaje + servicio
Text5.Text = Str(total)
igv = 0.18 * total
Text6.Text = Str(igv)
neto = total + igv
Text7.Text = Str(neto)
End Sub
End Sub
End Sub
Programando el Form3
Programando el Comando Aceptar
Private Sub Command1_Click()
Form2.Show
Form3.Hide
End Sub