Comando Locate
utilizei dessa forma para situar-me em uma tabela:
var
localizar_produto : string;
begin
localizar_produto := inttostr(dados.T_Compracod_produto.AsInteger);
dados.T_Estoque.Locate(´cod_produto´,localizar_produto,[lopartialkey,locaseinsensitive]);
funcionou corretamente, só que fui fazer em outra tabela e dá errado:
var
localizar_chave : string;
begin
localizar_chave := inttostr(dados.T_Chavecod_chave.AsInteger);
dados.T_Chave_Aberta.Locate(´cod_chave´,localizar_chave,[lopartialkey,locaseinsensitive]);
nesta segunda tabela aparece o erro:
[Error] U_Abrir_Chave.pas(49): Undeclared identifier: ´lopartialkey´
[Error] U_Abrir_Chave.pas(49): Undeclared identifier: ´locaseinsensitive´
agradeço antecipadamente
var
localizar_produto : string;
begin
localizar_produto := inttostr(dados.T_Compracod_produto.AsInteger);
dados.T_Estoque.Locate(´cod_produto´,localizar_produto,[lopartialkey,locaseinsensitive]);
funcionou corretamente, só que fui fazer em outra tabela e dá errado:
var
localizar_chave : string;
begin
localizar_chave := inttostr(dados.T_Chavecod_chave.AsInteger);
dados.T_Chave_Aberta.Locate(´cod_chave´,localizar_chave,[lopartialkey,locaseinsensitive]);
nesta segunda tabela aparece o erro:
[Error] U_Abrir_Chave.pas(49): Undeclared identifier: ´lopartialkey´
[Error] U_Abrir_Chave.pas(49): Undeclared identifier: ´locaseinsensitive´
agradeço antecipadamente
Henriquebyte
Curtidas 0