FoxPro/Visual FoxPro - URGENTE BOTONES

 
Vista:

URGENTE BOTONES

Publicado por mykie (1 intervención) el 09/10/2008 01:18:35
DISCULPEN LA PREGUNTA SOY NOVATO EN VFP 6 , LO QUE QUIERO ES CREAR UN BOTON GUARDAR QUE CUANDO LE HAGA CLIC GUARDE LO INTRODUCIDO POR EL USUARIO EN 2 TABLAS DIFERENTE , OBIAMENTE CON CAMPOS IDENTICOS LE AGREDECERIA DE ANTEMANO.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

RE:URGENTE BOTONES

Publicado por neo (1604 intervenciones) el 09/10/2008 15:48:41
ejemplo:

select Mi_tabla1
set order to clave
x1=Thisform.txt_clave.value
seek x1
If found()
replace clave with Thisform.txt_clave.value
replace nombre with Thisform.txt_nombre.value
replace ciudad with Thisform.txt_ciudad.value

Wait window "Datos Actualizados con éxito" nowait

else

append blank
replace clave with Thisform.txt_clave.value
replace nombre with Thisform.txt_nombre.value
replace ciudad with Thisform.txt_ciudad.value

Wait window "Datos Almacenados con éxito" nowait

endif
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar