Ver Mensaje Individual
  #1  
Antiguo 26-11-2004
MaríaMR MaríaMR is offline
Miembro
 
Registrado: nov 2004
Posts: 11
Reputación: 0
MaríaMR Va por buen camino
Tablas Con Indices

tENGO UN PROBLEMA CON UNA BÚSQUEDA EN UNA TABLA, NO TOMA EL ÍNDICE Y BUSCAR ENTRE 300 REGISTROS TARDA UNOS 20 MINUTOS.

LA TABLA TIENE UN INDICE IFACTURA DEFINIDO EN EL DATABASEDESTOCK COMO SECONDARY INDEXES Y UNICO POR LOS CAMPOS SERIE Y NFACTURA, SERIE ES DE TIPO STRING Y NFACTURA DE TIPO INTEGER A LA HORA DE BUSCARLO HAGO:

ModuloDatos.TFacturas.SetKey;
ModuloDatos.TFacturas['Serie'] := Pserie.Text;
ModuloDatos.TFacturas['NFactura'] := PnFactura.Text;
IF ModuloDatos.TFacturas.FindKey([PSerie.Text, PnFactura.Text]) THEN
Mostrar_Datos;

¿PORQUÉ NO ME BUSCA POR EL ÍNDICE?

POR FAVOR NO CONTESTAR POR CONTESTAR
Responder Con Cita