VER SE NOME JA EXISTE NO BANCO DE DADOS
Como digitar um nome e verificar se ja existe no banco de dados, mesmo se parecidos, ou com abreviacoes. Algum componente faz esse papel ?
Um abraco
Claudio RJ
[/url]
Um abraco
Claudio RJ
[/url]
Anonymous
Curtidas 0
Respostas
Bilouro
19/03/2003
[quote:a5f4bf4964=´CLAUDIO FERNANDO´]Como digitar um nome e verificar se ja existe no banco de dados, mesmo se parecidos, ou com abreviacoes. Algum componente faz esse papel ?
Um abraco
Claudio RJ
[/quote:a5f4bf4964]
Description
TLocateOptions is the type of the Options parameter to a dataset’s Locate method. The following table lists the possible values:
ValueDescription
loCaseInsensitiveKey fields and key values are matched without regard to case.
loPartialKeyKey values can include only part of the matching key field value; for example, ´HAM´ would match both ´HAMM´ and ´HAMMER.´
query1.locate(´nome_do_campo´,´texto_a_procurar´,[locaseinsensitive,lopartialkey]);
esse comando posiciona o ponteiro no registro mais parecido com o q vc informou.
[]´s
Um abraco
Claudio RJ
[/quote:a5f4bf4964]
Description
TLocateOptions is the type of the Options parameter to a dataset’s Locate method. The following table lists the possible values:
ValueDescription
loCaseInsensitiveKey fields and key values are matched without regard to case.
loPartialKeyKey values can include only part of the matching key field value; for example, ´HAM´ would match both ´HAMM´ and ´HAMMER.´
query1.locate(´nome_do_campo´,´texto_a_procurar´,[locaseinsensitive,lopartialkey]);
esse comando posiciona o ponteiro no registro mais parecido com o q vc informou.
[]´s
GOSTEI 0
Dor_poa
19/03/2003
if tabela.locate(´Campo´, EDIT1.text, [] ) then
Showmessage(´achou´);
Showmessage(´achou´);
GOSTEI 0