PROBLEMA APLICATIVO SQL
El siguiente problema es una aplicación de las instrucciones de SQL.
Paso 1.- Crear proyecto con el generador de proyectos
· Carpeta : D:SQLFOX10
· Proyecto : Proy1
· Base de datos: datos1
· Tablas y relacionamiento.
Paso 2.- Creación de formularios.
Formulario de ingreso de contraseña
·
Dos clic en boton aceptar (clic)
if thisform.text1.value="empleado" THEN
MESSAGEBOX ("La Clave correcta")
DO FORM inicio
else
messagebox("La Clave es Incorrecta")
THISFORM.REFRESH
endif
· Dos clic en el boton salir (clic)
thisform.release
· Dos clic en time1 (timer)
thisform.marquee.caption="BIENVENIDOS AL SISTEMA DE INGRESO Y CALCULOS DE SUELDO DE
EMPLEADO"
thisform.marquee.left=thisform.marquee.left-100
if thisform.marquee.left<=-500 thisform.marquee.left=200 endif
· Dos clic en time2 (timer)
if thisform.hora.caption !=time()
thisform.hora.caption =time()
endif
· Formulario 2
·
Dos clic en form1 (activate)
set defa to E:SQLFOX10
·Dos clic en ver relacionamiento de tablas (clic)
modify database
·Dos clic en administrador de categorias(clic)
do form categorias
·Dos clic en registro de datos de empleado(clic)
do form empleados
·Dos clic en calculo de sueldo (clic
do form sueldos
·Dos clic en salir (clic)
Thisform.release
Formulario 3
· DOS CLIC EN FORMULARIO (ACTIVATE)
close database
open database ("E:SQLFOX10datos1")
· DOS CLIC EN EL BOTON MOSTRAR (CLIC)
select categoria.categoria,prehora from categoria
· DOS CLIC EN EL BOTON GRABAR (CLIC)
with thisform
use categoria
insert into categoria(categoria,prehora)values(.text1.value,val(.text2.value))
=messagebox("Este Registro fue Grabado")
endwith
· DOS CLIC EN EL BOTON TEXT1 (INTERACTIVE CHANGE)
with thisform
titulo='Resultado de Registro'
texto = 'Este Registro['+.text1.value+'] ya Existe.....desea Eliminarlo?'
tipo = 4+32+256
use categoria
go top
flag = 0
do while !eof()
if rtrim(ltrim(.text1.value))=ltrim(rtrim(categoria))
.text2.value = prehora
flag = 1
endif
skip
enddo
if flag = 1
opcion = Messagebox(texto,tipo,titulo)
do case
case opcion = 6
delete from categoria where categoria = thisform .text1.value
wait window "eligio si....el registro['+.text1.value+']fue eliminado"
pack
.text1.value = ""
.text2.value = ""
.text1.setfocus
endcase
endif
endwith
· DOS CLIC EN EL BOTON SALIR (CLIC)
thisform.release
CREANDO FORMULARIOS DE INGRESO DE EMPLEADOS
·
DOS CLIC EN EL BOTON PRIMERO(CLIC)
SELECT sueldo
GO TOP
MESSAGEBOX("ESTE ES EL PRIMER REGISTRO")
THISFORM.REFRESH
· DOS CLIC EN EL BOTON SIGUIENTE(CLIC)
SELECT sueldo
SKIP
IF EOF()
GO BOTTOM
MESSAGEBOX("ESTE ES EL PRIMER REGISTRO")
ENDIF
THISFORM.REFRESH
· DOS CLIC EN EL BOTON ANTERIOR (CLIC)
SELECT sueldo
SKIP -1
IF BOF()
GO TOP
MESSAGEBOX("ESTE ES EL ULTIMO REGISTRO")
ENDIF
THISFORM.REFRESH
· DOS CLIC EN EL BOTON FINAL(CLIC)
SELECT sueldo
GO BOTTOM
MESSAGEBOX("ESTE ES EL ULTIMO REGISTRO...")
THISFORM.REFRESH
· DOS CLIC EN FORMULARIO (ACTIVATE)
with thisform
set defa to E:SQLFOX10
close table all
use empleados
go bottom
.txtDni.value= dni
.txtNombre.value= nombre
.txtDireccion.value= direccion
.combo1.value= sexo
.combo2.value= categoria
endwith
· DOS CLIC EN EL BOTON GUARDAR (CLIC)
with thisform
use empleados
insert into empleados(dni,nombre,direccion,sexo,categoria)values ;
(.txtDni.value,.txtNombre.value,.txtDireccion.value,.combo1.value,.combo2.value)
=messagebox("ESTE REGISTRO FUE GUARDADO")
endwith
· DOS CLIC EN BOTON ELIMINAR TODOS LOS REGISTROS (CLIC)
Close database
Open database ("E:SQLFOX10datos1")
Use empleados
Delete fromempleados
· DOS CLIC EN BOTON ELIMINAR (CLIC)
SELECT empleados
MEN=MESSAGEBOX("ESTA SEGURO DESEA ELIMINAR",4+32+256,"ADVERTENCIA")
do case
case MEN=6
DELETE
PACK
go top
THISFORM.REFRESH
case MEN=7
thisform.refresh
endcase
· DOS CLIC EN BOTON NUEVO (CLIC)
with thisform
.txtDni.value= ""
.txtNombre.value= ""
.txtDireccion.value= ""
.combo1.value= ""
.combo2.value= ""
.txtDni.setfocus
.txtDni.value= dni
.txtNombre.value= nombre
.txtDireccion.value= direccion
.combo1.value= sexo
.combo2.value= categoria
.txtDni.setfocus
endwith
· DOS CLIC EN BOTON EXAMINAR (CLIC)
browse
· DOS CLIC EN BOTON SALIR (CLIC)
Thisform.release
CREANDO FORMULARIO DE CALCULAR SUELDO
· DOS CLIC EN FORMULARIO (ACTIVATE)
with thisform
set defa to E:SQLFOX10
close table all
use sueldo
go bottom
.txtContador.value= Contador
.txtDni.value=Dni
.txtHtrab.value= Htrab
.txtSbruto.value= Sbruto
.txtEssalud.value= Essalud
.txtFonavi.value=Fonavi
.txtNeto.value= Neto
endwith
· DOS CLIC EN EL BOTON GUARDAR (CLIC)
with thisform
use sueldo
insert into sueldo(contador,dni,htrab,sbruto,essalud,fonavi,neto)values ;
(.txtContador.value,.txtDni.value,.txtHtrab.value,.txtSbruto.value,.txtEssalud.value;
.txtFonavi.value,.txtNeto.value)
=messagebox("ESTE REGISTRO FUE GUARDADO")
endwith
· DOS CLIC EN BOTON ELIMINAR (CLIC)
Close database
Open database ("E:SQLFOX10datos1")
Use sueldo
Delete from sueldo
· DOS CLIC EN BOTON ELIMINAR (CLIC)
SELECT sueldos
MEN=MESSAGEBOX("ESTA SEGURO DESEA ELIMINAR",4+32+256,"ADVERTENCIA")
do case
case MEN=6
DELETE
PACK
go top
THISFORM.REFRESH
case MEN=7
thisform.refresh
endcase
· DOS CLIC EN BOTON NUEVO (CLIC)
with thisform
.txtContador.enabled=.t.
.txtDni.enabled=.t.
.txtHtrab.enabled=.t.
.txtSbruto.enabled=.t.
.txtEssalud.enabled=.t.
.txtFonavi.enabled=.t.
.txtNeto.enabled=.t.
.txtContador.value= ""
.txtDni.value=""
.txtHtrab.value= ""
.txtSbruto.value= ""
.txtEssalud.value= ""
.txtFonavi.value=""
.txtNeto.value= ""
.txtcontador.value=""
.combo1.value=""
.txtContador.setfocus
.txtContador.value=contador
.txtDni.value=Dni
.txtHtrab.value=Htrab
.txtSbruto.value=Sbruto
.txtEssalud.value=Essalud
.txtFonavi.value=Fonavi
.txtNeto.value= Neto
endwith
· DOS CLIC EN BOTON EXAMINAR (CLIC)
browse
· DOS CLIC EN BOTON SALIR (CLIC)
Thisform.release
· DOS CLIC EN BOTON CALCULAR
f = 0
e = 0
n = 0
d = 0
h = val(.txtHtrab.value)
c = .combo1.value
do case
case c = "A"
b = h*100
f = b * 0.10
e = b * 0.15
case c = "B"
b = h*80
f = b * 0.10
e = b * 0.15
case c = "C"
b = h*60
f = b * 0.10
e = b * 0.15
case c = "D"
b = h*40
f = b * 0.10
e = b * 0.15
otherwise
=messagebox("la categoria no existe")
.combo1.setfocus
endcase
d = f + e
n = b - d
.txtSbruto.value = b
.txtEssalud.value = e
.txtFonavi.value = f
.txtNeto.value = n
Endwith
· DOS CLIC EN EL BOTON PRIMERO(CLIC)
SELECT sueldo
GO TOP
MESSAGEBOX("ESTE ES EL PRIMER REGISTRO")
THISFORM.REFRESH
· DOS CLIC EN EL BOTON SIGUIENTE(CLIC)
SELECT sueldo
SKIP
IF EOF()
GO BOTTOM
MESSAGEBOX("ESTE ES EL PRIMER REGISTRO")
ENDIF
THISFORM.REFRESH
· DOS CLIC EN EL BOTON ANTERIOR (CLIC)
SELECT sueldo
SKIP -1
IF BOF()
GO TOP
MESSAGEBOX("ESTE ES EL ULTIMO REGISTRO")
ENDIF
THISFORM.REFRESH
· DOS CLIC EN EL BOTON FINAL(CLIC)
SELECT sueldo
GO BOTTOM
MESSAGEBOX("ESTE ES EL ULTIMO REGISTRO...")
THISFORM.REFRESH

Más contenido relacionado

PPTX
GEOMETRIC COMPUTER PROGRAMA DE BD
DOC
Manual de shine system
PDF
Tema02 sqlite studio
PDF
Processing2|parte
PDF
Manual de shine system
DOCX
Restricciones Check en Sql
PDF
Apuntes10
GEOMETRIC COMPUTER PROGRAMA DE BD
Manual de shine system
Tema02 sqlite studio
Processing2|parte
Manual de shine system
Restricciones Check en Sql
Apuntes10

La actualidad más candente (17)

PPTX
Métodos abreviados de teclado de windows
PDF
MANUAL DE COMANDOS
PDF
Metodos abreviados del teclado
DOCX
Comandos del teclado
DOCX
Problemas condicionales
PDF
Tutorial Hp user rpl modo algebraico 1.2
PDF
MUNUAL DE COMANDOS
PPTX
PDF
Métodos abreviados del telcado
PPTX
Libre office
TXT
Consultas para bd en mysql
PDF
Algoritmica i clase05 practica 5 solucionario
DOCX
Ejercicio propuesto 2
DOCX
Problemas propuesto 1 al12
PPTX
Atajos de windows 7
PPT
Eclas rápidas
Métodos abreviados de teclado de windows
MANUAL DE COMANDOS
Metodos abreviados del teclado
Comandos del teclado
Problemas condicionales
Tutorial Hp user rpl modo algebraico 1.2
MUNUAL DE COMANDOS
Métodos abreviados del telcado
Libre office
Consultas para bd en mysql
Algoritmica i clase05 practica 5 solucionario
Ejercicio propuesto 2
Problemas propuesto 1 al12
Atajos de windows 7
Eclas rápidas
Publicidad

Destacado (16)

PDF
Ej. 6. temas en nasal. grados adj. aoristo.
PPTX
Clean_Harbors_English_Corporate_Presentation_2016
PPTX
Referencement 1404895674
PPTX
PDF
Manager Training Certificate
PPTX
Diego mauricio
DOC
Sistem hormon
PPTX
Caim era do maligno andre
PPTX
Air pollution and Water pollution
PDF
Eslam El-Gameil Khiry CV9
PDF
Encontro da Comunidade Pentaho. Aprenda mais sobre a mais poderosa e conheci...
PPTX
How predictive algorithms help you to engage and retain visitors
PDF
The fundamental principles of success
PPTX
TERAPIA RACIONAL EMOTIVA
PPT
Letter Writing in URDU
PDF
Le vin 2.0 vinagora 2012 formation 01 outils sociaux - philippe hugon vinte...
Ej. 6. temas en nasal. grados adj. aoristo.
Clean_Harbors_English_Corporate_Presentation_2016
Referencement 1404895674
Manager Training Certificate
Diego mauricio
Sistem hormon
Caim era do maligno andre
Air pollution and Water pollution
Eslam El-Gameil Khiry CV9
Encontro da Comunidade Pentaho. Aprenda mais sobre a mais poderosa e conheci...
How predictive algorithms help you to engage and retain visitors
The fundamental principles of success
TERAPIA RACIONAL EMOTIVA
Letter Writing in URDU
Le vin 2.0 vinagora 2012 formation 01 outils sociaux - philippe hugon vinte...
Publicidad

Similar a Problema aplicativo sql (20)

DOCX
Proyecto de gambas parte 2
DOCX
Proyecto de gambas parte 2
PDF
Separata de vb 2015
PDF
Elemento n3
DOCX
Botón cantycelar cmd cancelar
PDF
Informe 22
PPT
Tema 2 - Programación básica en C (III)
DOC
Formulario De Registro De Boleta De Ventay Mantenimiento De Cliente
DOC
Formulario De Registro De Boleta De Ventay Mantenimiento De Cliente
PDF
Cuaderno digital
DOCX
Operacion variables.docx
PPTX
Tutorial n°3 excel 2010
PDF
Cristinagananparedes
PDF
Ejemploc de caso
DOCX
FormularioFaturaFoxpro
DOC
Acmar trucos de visual basic(2)
PPT
Programación de código
DOCX
Guía Practica de JavaScript
DOCX
Dbdd u1 ea_dila
PDF
Sesión 2 - Estructuras secuenciales y selectivas.pdf
Proyecto de gambas parte 2
Proyecto de gambas parte 2
Separata de vb 2015
Elemento n3
Botón cantycelar cmd cancelar
Informe 22
Tema 2 - Programación básica en C (III)
Formulario De Registro De Boleta De Ventay Mantenimiento De Cliente
Formulario De Registro De Boleta De Ventay Mantenimiento De Cliente
Cuaderno digital
Operacion variables.docx
Tutorial n°3 excel 2010
Cristinagananparedes
Ejemploc de caso
FormularioFaturaFoxpro
Acmar trucos de visual basic(2)
Programación de código
Guía Practica de JavaScript
Dbdd u1 ea_dila
Sesión 2 - Estructuras secuenciales y selectivas.pdf

Último (20)

PPTX
Sindrome nefroticooooooooooooooooooooooooo
PDF
jnkjnjknjknkjnjknkjnkjnDS C1 02.08.23.pdf
DOCX
PLAN_CIUDADANÍA_2DO.docaonakakanankkanakak
PPTX
Motores base de datos en ingenieria de sistemas.pptx
PPTX
DerAdmI.UV.2025.1.2.3.Unidades (1).pptxhbbbbbbbb
PDF
DISEÑO Y SIMULACIÓN DE CIRCUITOS ELECTRÓNICOS EN ENTORNOS VIRTUALES
PDF
ElectrocardiogramadcncsjnvcjKMmvjvjj.pdf
DOCX
trabajo de tecnologia 10-3.docx2025-08-18
PPTX
PROYECTO PARA ADMINISTRTACION DE PROYECTOS.pptx
PDF
EL INTERNET DEL CURSO DE HERRAMIENTAS INFORMÁTICAS
PPTX
01Clase Eva Nut 2023.pptxfhcvbvgnbnfvgjhb
DOCX
DOC-20250819-WA0002.hoy juan 3011.docx000
PPTX
S07_s1 - Análisis de sensibilidad y Regla del 100_.pptx
PDF
4to de sec .pdf b hvjbjbjvjhvjkbklbklbklbkln
PPTX
Crear un Recurso Multimedia en casa trabajo y escuela
PPTX
Presentacion_Auditoria_Vialidad_Graficas.pptx
PDF
ABORDAJE TERAPEUTICO PROBLEMAS ALIMENTICIOS TCA
PDF
Derechos Generales y Obligaciones de las y los Trabajadores de Salud_20250817...
PDF
Exposición.pdfccttccbzbe dhsuhzbdjsiwnebfuxuj
PPTX
1 Salud Ocupacional en la parte informatica.pptx
Sindrome nefroticooooooooooooooooooooooooo
jnkjnjknjknkjnjknkjnkjnDS C1 02.08.23.pdf
PLAN_CIUDADANÍA_2DO.docaonakakanankkanakak
Motores base de datos en ingenieria de sistemas.pptx
DerAdmI.UV.2025.1.2.3.Unidades (1).pptxhbbbbbbbb
DISEÑO Y SIMULACIÓN DE CIRCUITOS ELECTRÓNICOS EN ENTORNOS VIRTUALES
ElectrocardiogramadcncsjnvcjKMmvjvjj.pdf
trabajo de tecnologia 10-3.docx2025-08-18
PROYECTO PARA ADMINISTRTACION DE PROYECTOS.pptx
EL INTERNET DEL CURSO DE HERRAMIENTAS INFORMÁTICAS
01Clase Eva Nut 2023.pptxfhcvbvgnbnfvgjhb
DOC-20250819-WA0002.hoy juan 3011.docx000
S07_s1 - Análisis de sensibilidad y Regla del 100_.pptx
4to de sec .pdf b hvjbjbjvjhvjkbklbklbklbkln
Crear un Recurso Multimedia en casa trabajo y escuela
Presentacion_Auditoria_Vialidad_Graficas.pptx
ABORDAJE TERAPEUTICO PROBLEMAS ALIMENTICIOS TCA
Derechos Generales y Obligaciones de las y los Trabajadores de Salud_20250817...
Exposición.pdfccttccbzbe dhsuhzbdjsiwnebfuxuj
1 Salud Ocupacional en la parte informatica.pptx

Problema aplicativo sql

  • 1. PROBLEMA APLICATIVO SQL El siguiente problema es una aplicación de las instrucciones de SQL. Paso 1.- Crear proyecto con el generador de proyectos · Carpeta : D:SQLFOX10 · Proyecto : Proy1 · Base de datos: datos1 · Tablas y relacionamiento. Paso 2.- Creación de formularios. Formulario de ingreso de contraseña · Dos clic en boton aceptar (clic) if thisform.text1.value="empleado" THEN MESSAGEBOX ("La Clave correcta") DO FORM inicio else messagebox("La Clave es Incorrecta") THISFORM.REFRESH endif · Dos clic en el boton salir (clic) thisform.release · Dos clic en time1 (timer) thisform.marquee.caption="BIENVENIDOS AL SISTEMA DE INGRESO Y CALCULOS DE SUELDO DE EMPLEADO" thisform.marquee.left=thisform.marquee.left-100 if thisform.marquee.left<=-500 thisform.marquee.left=200 endif · Dos clic en time2 (timer) if thisform.hora.caption !=time() thisform.hora.caption =time() endif · Formulario 2
  • 2. · Dos clic en form1 (activate) set defa to E:SQLFOX10 ·Dos clic en ver relacionamiento de tablas (clic) modify database ·Dos clic en administrador de categorias(clic) do form categorias ·Dos clic en registro de datos de empleado(clic) do form empleados ·Dos clic en calculo de sueldo (clic do form sueldos ·Dos clic en salir (clic) Thisform.release Formulario 3 · DOS CLIC EN FORMULARIO (ACTIVATE) close database open database ("E:SQLFOX10datos1") · DOS CLIC EN EL BOTON MOSTRAR (CLIC) select categoria.categoria,prehora from categoria · DOS CLIC EN EL BOTON GRABAR (CLIC) with thisform use categoria insert into categoria(categoria,prehora)values(.text1.value,val(.text2.value)) =messagebox("Este Registro fue Grabado") endwith · DOS CLIC EN EL BOTON TEXT1 (INTERACTIVE CHANGE) with thisform titulo='Resultado de Registro' texto = 'Este Registro['+.text1.value+'] ya Existe.....desea Eliminarlo?' tipo = 4+32+256 use categoria go top flag = 0 do while !eof() if rtrim(ltrim(.text1.value))=ltrim(rtrim(categoria)) .text2.value = prehora flag = 1 endif skip enddo if flag = 1
  • 3. opcion = Messagebox(texto,tipo,titulo) do case case opcion = 6 delete from categoria where categoria = thisform .text1.value wait window "eligio si....el registro['+.text1.value+']fue eliminado" pack .text1.value = "" .text2.value = "" .text1.setfocus endcase endif endwith · DOS CLIC EN EL BOTON SALIR (CLIC) thisform.release CREANDO FORMULARIOS DE INGRESO DE EMPLEADOS · DOS CLIC EN EL BOTON PRIMERO(CLIC) SELECT sueldo GO TOP MESSAGEBOX("ESTE ES EL PRIMER REGISTRO") THISFORM.REFRESH · DOS CLIC EN EL BOTON SIGUIENTE(CLIC) SELECT sueldo SKIP IF EOF() GO BOTTOM MESSAGEBOX("ESTE ES EL PRIMER REGISTRO") ENDIF THISFORM.REFRESH · DOS CLIC EN EL BOTON ANTERIOR (CLIC) SELECT sueldo SKIP -1 IF BOF() GO TOP MESSAGEBOX("ESTE ES EL ULTIMO REGISTRO") ENDIF THISFORM.REFRESH · DOS CLIC EN EL BOTON FINAL(CLIC) SELECT sueldo GO BOTTOM MESSAGEBOX("ESTE ES EL ULTIMO REGISTRO...") THISFORM.REFRESH · DOS CLIC EN FORMULARIO (ACTIVATE) with thisform set defa to E:SQLFOX10 close table all use empleados go bottom .txtDni.value= dni .txtNombre.value= nombre .txtDireccion.value= direccion
  • 4. .combo1.value= sexo .combo2.value= categoria endwith · DOS CLIC EN EL BOTON GUARDAR (CLIC) with thisform use empleados insert into empleados(dni,nombre,direccion,sexo,categoria)values ; (.txtDni.value,.txtNombre.value,.txtDireccion.value,.combo1.value,.combo2.value) =messagebox("ESTE REGISTRO FUE GUARDADO") endwith · DOS CLIC EN BOTON ELIMINAR TODOS LOS REGISTROS (CLIC) Close database Open database ("E:SQLFOX10datos1") Use empleados Delete fromempleados · DOS CLIC EN BOTON ELIMINAR (CLIC) SELECT empleados MEN=MESSAGEBOX("ESTA SEGURO DESEA ELIMINAR",4+32+256,"ADVERTENCIA") do case case MEN=6 DELETE PACK go top THISFORM.REFRESH case MEN=7 thisform.refresh endcase · DOS CLIC EN BOTON NUEVO (CLIC) with thisform .txtDni.value= "" .txtNombre.value= "" .txtDireccion.value= "" .combo1.value= "" .combo2.value= "" .txtDni.setfocus .txtDni.value= dni .txtNombre.value= nombre .txtDireccion.value= direccion .combo1.value= sexo .combo2.value= categoria .txtDni.setfocus endwith · DOS CLIC EN BOTON EXAMINAR (CLIC) browse · DOS CLIC EN BOTON SALIR (CLIC) Thisform.release CREANDO FORMULARIO DE CALCULAR SUELDO · DOS CLIC EN FORMULARIO (ACTIVATE) with thisform
  • 5. set defa to E:SQLFOX10 close table all use sueldo go bottom .txtContador.value= Contador .txtDni.value=Dni .txtHtrab.value= Htrab .txtSbruto.value= Sbruto .txtEssalud.value= Essalud .txtFonavi.value=Fonavi .txtNeto.value= Neto endwith · DOS CLIC EN EL BOTON GUARDAR (CLIC) with thisform use sueldo insert into sueldo(contador,dni,htrab,sbruto,essalud,fonavi,neto)values ; (.txtContador.value,.txtDni.value,.txtHtrab.value,.txtSbruto.value,.txtEssalud.value; .txtFonavi.value,.txtNeto.value) =messagebox("ESTE REGISTRO FUE GUARDADO") endwith · DOS CLIC EN BOTON ELIMINAR (CLIC) Close database Open database ("E:SQLFOX10datos1") Use sueldo Delete from sueldo · DOS CLIC EN BOTON ELIMINAR (CLIC) SELECT sueldos MEN=MESSAGEBOX("ESTA SEGURO DESEA ELIMINAR",4+32+256,"ADVERTENCIA") do case case MEN=6 DELETE PACK go top THISFORM.REFRESH case MEN=7 thisform.refresh endcase · DOS CLIC EN BOTON NUEVO (CLIC) with thisform .txtContador.enabled=.t. .txtDni.enabled=.t. .txtHtrab.enabled=.t. .txtSbruto.enabled=.t. .txtEssalud.enabled=.t. .txtFonavi.enabled=.t. .txtNeto.enabled=.t. .txtContador.value= "" .txtDni.value="" .txtHtrab.value= "" .txtSbruto.value= "" .txtEssalud.value= "" .txtFonavi.value="" .txtNeto.value= "" .txtcontador.value="" .combo1.value="" .txtContador.setfocus .txtContador.value=contador .txtDni.value=Dni .txtHtrab.value=Htrab .txtSbruto.value=Sbruto .txtEssalud.value=Essalud .txtFonavi.value=Fonavi .txtNeto.value= Neto endwith · DOS CLIC EN BOTON EXAMINAR (CLIC) browse · DOS CLIC EN BOTON SALIR (CLIC) Thisform.release · DOS CLIC EN BOTON CALCULAR
  • 6. f = 0 e = 0 n = 0 d = 0 h = val(.txtHtrab.value) c = .combo1.value do case case c = "A" b = h*100 f = b * 0.10 e = b * 0.15 case c = "B" b = h*80 f = b * 0.10 e = b * 0.15 case c = "C" b = h*60 f = b * 0.10 e = b * 0.15 case c = "D" b = h*40 f = b * 0.10 e = b * 0.15 otherwise =messagebox("la categoria no existe") .combo1.setfocus endcase d = f + e n = b - d .txtSbruto.value = b .txtEssalud.value = e .txtFonavi.value = f .txtNeto.value = n Endwith · DOS CLIC EN EL BOTON PRIMERO(CLIC) SELECT sueldo GO TOP MESSAGEBOX("ESTE ES EL PRIMER REGISTRO") THISFORM.REFRESH · DOS CLIC EN EL BOTON SIGUIENTE(CLIC) SELECT sueldo SKIP IF EOF() GO BOTTOM MESSAGEBOX("ESTE ES EL PRIMER REGISTRO") ENDIF THISFORM.REFRESH · DOS CLIC EN EL BOTON ANTERIOR (CLIC) SELECT sueldo SKIP -1 IF BOF() GO TOP MESSAGEBOX("ESTE ES EL ULTIMO REGISTRO") ENDIF THISFORM.REFRESH · DOS CLIC EN EL BOTON FINAL(CLIC) SELECT sueldo GO BOTTOM MESSAGEBOX("ESTE ES EL ULTIMO REGISTRO...") THISFORM.REFRESH