FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour FILTRAR CAMPO MEMO
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
FILTRAR CAMPO MEMO
Posted: Sun Apr 22, 2007 06: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
FILTRAR CAMPO MEMO
Posted: Tue Apr 24, 2007 07: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
FILTRAR CAMPO MEMO
Posted: 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
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
FILTRAR CAMPO MEMO
Posted: Wed Apr 25, 2007 08:19 PM

Antonio,

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

Muchas gracias.

Un saludo



Manuel

Continue the discussion