Ver Mensaje Individual
  #2  
Antiguo 04-10-2003
frankmch frankmch is offline
Miembro
 
Registrado: jul 2003
Ubicación: venezuela
Posts: 76
Reputación: 21
frankmch Va por buen camino
existe una funcion parecida a lo que quieres hacer.
el texto que cito a continuacion es de la ayuda de delphi 5.

procedure FindNearest(const KeyValues: array of const);

Description

Call FindNearest to move the cursor to a specific record in a dataset or to the first record in the dataset that is greater than the values specified in the KeyValues parameter. KeyValues contains a comma-delimited array of field values, called a key. If the number of values passed in KeyValues is less than the number of columns in the index used for the search, the missing values are assumed to be NULL.

Note: FindNearest works only with string data types.

FindNearest positions the cursor either on a record that exactly matches the search criteria, or on the first record whose values are greater than those specified in the search criteria. The current setting of KeyExclusive also affects this behavior.



espero te sirva, es lo mas parecido a que se me ocurre a lo que quieres hacer.

saludos
__________________
ing. frankmch
Responder Con Cita