FILTRAR CAMPO MEMO

FILTRAR CAMPO MEMO

Postby Manuel Valdenebro » Sun Apr 22, 2007 6:49 pm

En un fichero cdx con campos memos ¿como puedo realizar un filtro con una clave de su contenido?

En los otros tipos de campos, el filtro lo realizo mediante un indice:

INDEX ON fichero->NOMBRE for cVariable $ fichero->MATRICULA

Pero esto no funciona con los campos memos.

Tambien he intentado con un SET FILTER, pero tampoco me ha funcionado.

¿Alguna idea?
Un saludo

Manuel
User avatar
Manuel Valdenebro
 
Posts: 706
Joined: Thu Oct 06, 2005 9:57 pm
Location: Málaga-España

Postby Antonio Linares » Tue Apr 24, 2007 7:21 am

Manuel,

Existe una forma de crear un índice basado en la condición que desees y en donde tu indicas que registros se añaden al índice.

Hemos preguntado en la lista de desarrollo de Harbour para que nos indiquen cual es la forma correcta de usarlo.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41947
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Tue Apr 24, 2007 12:42 pm

Manuel,

Igual que en Clipper 5.3 :-)

INDEX ON ... CUSTOM

CUSTOM specifies that a custom built order will be created for RDDs
that support them. A custom built order is initially empty, giving you
complete control over order maintenance. The system does not
automatically add and delete keys from a custom built order. Instead,
you explicitly add and delete keys using ORDKEYADD() and ORDKEYDEL().
This capability is excellent for generating pick lists of specific
records and other custom applications.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41947
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Manuel Valdenebro » Wed Apr 25, 2007 8:19 pm

Antonio,

Ha funcionado perfectamente con INDEX .. CUSTOM y personalizando el indice con ORDKEYADD().

Muchas gracias.
Un saludo

Manuel
User avatar
Manuel Valdenebro
 
Posts: 706
Joined: Thu Oct 06, 2005 9:57 pm
Location: Málaga-España


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 88 guests