FoxPro/Visual FoxPro - QUE DEMONIOS PASA ??!!!

 
Vista:

QUE DEMONIOS PASA ??!!!

Publicado por ASA (10 intervenciones) el 19/04/2007 00:35:49
TENGO ESTA FORMULA

select clientes
xnombres=substr(nombres,AT(' ',NOMBRES),AT(' ',NOMBRES))
thisform.txtapellidos.value=xnombres

QUE ME COJA NADA MAS EL SEGUNDO APELLIDO POR ESO EN LA FORMULA PREGUNTO QUE EMPIEZE DESDE EL ESPACIO EN BLANCO Y TERMINE EN UN ESPACIO EN BLANCO

ASI

PINEDA AGUDELO ANDRES FELIPE

RESULTADO=AGUDELO

HAY UNOS CAMPOS QUE SI LOS MUESTRA Y OTROS QUE LOS MUESTRA PARTIDOS
EJEMPLO
TORRES RAMIRO PABLO
RESULTADO=RAMIR

RAZON="SABRA EL IJUE..."
PERDON ES QUE ESTOY JARTO QUE UNA COSA QUE SE VE TAN FACIL Y PASO ESTO

Y HE ENSAYADO Y LLEGUE A LA CONCLUSION DE QUE LA INSTRUCCION AT TRABAJA MAL CREO QUE DEBE HABER OTRA FUNCION
CUALQUIER COSA ESTARE MUY AGRADECIDO
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:QUE DEMONIOS PASA ??!!!

Publicado por Ernesto Hernandez (4623 intervenciones) el 19/04/2007 01:17:23
xnombres=(nombres,AT(' ',NOMBRES),AT(' ',NOMBRES))

Suerte
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
sin imagen de perfil

RE:QUE DEMONIOS PASA ??!!!

Publicado por Ernesto Hernandez (4623 intervenciones) el 19/04/2007 01:23:45
de esta otra manera tienes los 2 apellidos

xnombres=substr(nombres,AT(' ',NOMBRES))
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