Professional Documents
Culture Documents
Primer Programa
Primer Programa
cb_nueva
rb_mb.checked = false
rb_c.checked = false
rb_cf.checked = false
rb_cx.checked = false
cbx_soda.checked = false
cbx_Naranjan.checked = false
cbx_Nar.checked = false
cbx_extras.checked = false
sle_costo.text = ""
sle_des.text = ""
sle_pagar.text = ""
cb_close
close(W_login)
cb_cobrar
sle_pagar.text = string(real(sle_costo.text)*real(sle_des.text)/100-real(sle_costo.text))
rb_mb
if rb_mb.checked = true then
sle_costo.text = "35"
end if
rb_c
if rb_c.checked = true then
sle_costo.text = "45"
end if
rb_cf
if rb_cf.checked = true then
sle_costo.text = "40"
end if
rb_cx
if rb_cx.checked = true then
sle_costo.text = "60"
end if
cbx_soda
if cbx_soda.checked = True then
sle_costo.text = string(real(sle_costo.text)+5)
else
sle_costo.text = string(real(sle_costo.text)-5)
end if
cbx_naranjan
if cbx_Naranjan.checked = True then
sle_costo.text = string(real(sle_costo.text)+12)
else
sle_costo.text = string(real(sle_costo.text)-12)
end if
cbx_nar
if cbx_nar.checked = True then
sle_costo.text = string(real(sle_costo.text)+15)
else
sle_costo.text = string(real(sle_costo.text)-15)
end if
cbx_extras
if cbx_extras.checked = True then
sle_costo.text = string(real(sle_costo.text)+10)
else
sle_costo.text = string(real(sle_costo.text)-10)
end if
cbx_memorias
if cbx_memorias.checked = true then
st_15.text = string(real(st_15.text)+200)
p_memorias.visible = true
sle_total.text=string(real(sle_total.text)+200)
else
st_15.text = string(real(st_15.text)-200)
p_memorias.visible = false
sle_total.text=string(real(sle_total.text)-200)
end if
cbx_monitor
if cbx_monitor.checked = true then
st_15.text = string(real(st_15.text)+1100)
p_monitor.visible = true
sle_total.text=string(real(sle_total.text)+1100)
else
st_15.text = string(real(st_15.text)-1100)
p_monitor.visible = false
sle_total.text=string(real(sle_total.text)-1100)
end if
cbx_kit
if cbx_kit.checked = true then
st_15.text = string(real(st_15.text)+350)
p_altavoces.visible = true
sle_total.text=string(real(sle_total.text)+350)
else
st_15.text = string(real(st_15.text)-350)
p_altavoces.visible = false
sle_total.text=string(real(sle_total.text)-350)
end if
cbx_camara
if cbx_camara.checked = true then
st_15.text = string(real(st_15.text)+450)
p_camara.visible = true
sle_total.text=string(real(sle_total.text)+450)
else
st_15.text = string(real(st_15.text)-450)
p_camara.visible = false
sle_total.text=string(real(sle_total.text)-450)
end if
cb_total
sle_total.text = string(real(st_15.text)+5400)
cb_fin
close(W_login1)
cb_1
open(W_login)
cb_2
open(W_login1)
cb_3
close(W_login2)