Académique Documents
Professionnel Documents
Culture Documents
NOMBRE: _________________________________________________________
I.-
3.- Escribe un ejemplo del comando para ordenar la tabla por apellidos
4.- Escribe un ejemplo del comando para reemplazar datos de un Textbox a un campo de tabla
BOF
WAIT WINDOWS
GO BOTTOM
SKIP
MESSAGEBOX
GO TOP
EOF
USE A)
tabagenda
LOCAL lcPath
(
as )string
Imprime los
lcPath=PUTFILE("Guardar
como: ","Agenda","xls")
datos de una tabla.
SELECT tabagenda
COPY TO (lcPath) TYPE XLS
RELEASE THISFORM
(
) Buscar un
registro.
B) tabagenda
SELECT
SET ORDER TO apellidos ASCENDING
(
) Elimina un
REPORT FORM
LOCFILE("informe1.frx")
TO PRINTER PROMPT
RELEASE registro.
thisform
) Agrega un
C) tabagenda
registro nuevo a la
SELECT
SET ORDER
TO APELLIDOS
tabla.
GO TOP
thisform.Refresh
LOCATE FOR apellidos =
ALLTRIM(UPPER(thisform.txtapellido.Value))
IF .not.( FOUND()) Exporta una
base de
MESSAGEBOX("No
sedatos
encontro el registro")
ELSE
thisform.grid1.SetFocus()
thisform.txtid.Value=Tabagenda.id
thisform.txtapellido.Value=" "
thisform.cmdaceptar.Enabled= .T.
endif
D)
E)
APPEND BLANK
replace apellidos WITH thisform.txtapellidos.Value
replace nombres WITH thisform.txtnombres.Value
replace direccion WITH thisform.txtdireccion.Value
replace numero WITH thisform.txtnumero.Value
replace colonia WITH thisform.txtcolonia.Value
replace tel WITH thisform.txttel.Value
replace ciudad WITH thisform.txtciudad.Value
replace estado WITH thisform.cmbestado.Value