In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

BUSQUEDAS EN UN QUERY

Foro de Xailer profesional en español
Responder
Daniel Pechir
Mensajes: 192
Registrado: Vie Mar 15, 2013 12:32 am

BUSQUEDAS EN UN QUERY

Mensaje por Daniel Pechir »

HOLA

EN LOS METODOS DE UN QUERY CON DATASET DE MARIA O MYSQL TENEMOS EL COMANDO LOCATE
¿ EQUIVALE A UN SEEK() ?
¿ TENDRAN UN EJEMPLO DE LA SINTAXIS ?

SEEK() ES DE LO MAS USADO

SALUDOS y GRACIAS

DANIEL PECHIR TAGER
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9255
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: BUSQUEDAS EN UN QUERY

Mensaje por ignacio »

El método Locate utiliza la misma sintaxis que la cláusula WHERE propia de SQL.

Un saludo
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Daniel Pechir
Mensajes: 192
Registrado: Vie Mar 15, 2013 12:32 am

Re: BUSQUEDAS EN UN QUERY

Mensaje por Daniel Pechir »

GRACIAS IGNACIO

TENGO UN QUERY " ::oQuerySal " QUE CONTIENE UN CAMPO LLAMADO " NUM "
VIENE DE UN ARCHIVO LLAMADO " CLIENTES "

INTENTO REALIZAR UN LOCATE() Y NO LO LOGRO

::oQuerySal:Locate( ' where Num = 1300' )

TODO LO DEMAS MA HA FUNCIONADO MUY BIEN, INCLUSIVE CON UN REPORT BASTANTE COMPLEJO

¿ DONDE ESTA MI ERROR ?

SALUDOS

DANIEL PECHIR TAGER
Daniel Pechir
Mensajes: 192
Registrado: Vie Mar 15, 2013 12:32 am

Re: BUSQUEDAS EN UN QUERY

Mensaje por Daniel Pechir »

HOLA IGNACIO

YA FUNCIONO !!

IF ::oQuerySal:Locate('Num = 1300')
MsgInfo( ::oQuerySal:Nomcli )
ENDIF

BENDICIONES

DANIEL PECHIR TAGER
Responder