USE parejas_rejistradas ORDER 1
DO WHILE .T.
VRNP= space(15)
VRNP_f= space(15)
vNo_pareja=0
fecha_mat= (" / / ")
Define Windows wagregar from 1,1 to 30,60;
Float noclose nozoom nominimize panel title;
"agregar registros_tabla datos pareja registrada" in windows wmenugeneral
Move windows wagregar center
Activate windows wagregar
CLEAR
@2,1 say "Numero de pareja :" get vNo_pareja picture "9999 "
READ
IF EMPTY(Vno_pareja) THEN
CLEAR
Release windows wagregar
RETURN
ENDIF
SEEK RTRIM (vno_pareja) **AQUI ES EL ERROR**
IF FOUND() THEN
=MESSAGEBOX("este registro ya existe ",32,"Informacion")
LOOP
ENDIF
@3,1 say "RNP Masculino :" get vrnp picture "9999-9999-99999"
@4,1 say "RNP Femenino :" get vrnp_f picture "9999-9999-99999 "
@6,1 say "Fecha de matrimonio :" get vfecha_mat
READ
Guardar=" "
@12,1 say "desea guarder [S/N]" get guardar;
Valid guardar$"SN" error "S ó N"
Read
If guardar="S" then
Append Blank
Replace no_paraja with Vno_pareja
Replace rnp with Vrnp
Replace rnp_f with vrnp_f
Replace fecha_Mat with vfecha_mat
EndIf
@12,1 to 13,90 clear
Salir=" "
@12,1 say "Desea Salir del programa [S/N] ";
get Salir valid Salir$"SN" error "S ó N"
Read
If Salir="S" then
Clear
Release windows wagregar
DO menu_general
ENDIF
ENDDO