Rodinei,

Bom dia...
Foi, no mínimo, uma discortesia fazer uma correção impensada... na minha 
informação para a colega Janise...
Como ela havia pedido informações sobre uma pesquisa simples, e visto 
que ela ainda é iniciante...


Veja o Help do Delphi sobre o Dataset.Locate:


*---------

Implements a virtual method for searching a dataset for a specified 
record and making it the active record.

function Locate(const KeyFields: string; const KeyValues: Variant; 
Options: TLocateOptions): Boolean; virtual;

Description

This function

Checks whether the dataset is unidirectional, and if so, raises an 
EDatabaseError exception.
    Returns False, indicating that a matching record was not found and 
the active record was not changed.

Descendant classes that are not unidirectional override this method so 
that it locates the record where the fields identified by the 
semicolon-separated list of fields in KeyFields have the values 
specified by the Variant or Variant array KeyValues. Options indicates 
whether the search is case insensitive and whether partial matches are 
supported. Locate returns True if a record is found that matches the 
specified criteria and that record is now active.

------------------

*Observando o parâmetro da KeyValues, minha informação à colega, não 
está ERRADA*.
*
Tenha um dia abençâdo, e que seu 2009 seja especialmente edificante!

Cordiais saudações,

Emanuel Coutinho









------------------------------------

-- 
<<<<< FAVOR REMOVER ESTA PARTE AO RESPONDER ESTA MENSAGEM >>>>>

<*> Para ver as mensagens antigas, acesse:
    http://br.groups.yahoo.com/group/delphi-br/messages

<*> Para falar com o moderador, envie um e-mail para:
    delphi-br-ow...@yahoogrupos.com.br
Links do Yahoo! Grupos

<*> Para visitar o site do seu grupo na web, acesse:
    http://br.groups.yahoo.com/group/delphi-br/

<*> Para sair deste grupo, envie um e-mail para:
    delphi-br-unsubscr...@yahoogrupos.com.br

<*> O uso que você faz do Yahoo! Grupos está sujeito aos:
    http://br.yahoo.com/info/utos.html


Responder a