Fórum Erro de Key Violation #276250
08/04/2005
0
Alguem saberia como resolver eu problema?
Daniel.felgar
Curtir tópico
+ 0Posts
08/04/2005
Rjun
Gostei + 0
08/04/2005
Silviogs
vc poderia postar a função pra pegar um novo código.
Silvio Guedes
Gostei + 0
08/04/2005
Ariovaldo
Gostei + 0
08/04/2005
Daniel.felgar
Gostei + 0
08/04/2005
Daniel.felgar
Gostei + 0
08/04/2005
Rjun
Gostei + 0
08/04/2005
Daniel.felgar
salvana tabela
qyGeral.sql.clear;
qyGeral.sql.close;
qyGeral.sql.add(´Select max(´+nomecampo+´) as lastcode´);
qyGeral.sql.add(´from ´+nometabela);
qyGeral.Open;
if qyGeral.RecordCount = 0 then
result := 1
else
result := qyGeral.fieldbyname(´lastcode´).asinteger + 1;
Gostei + 0
08/04/2005
Rjun
Gostei + 0
08/04/2005
Ariovaldo
Gostei + 0
08/04/2005
Daniel.felgar
num da pra usar.
Gostei + 0
08/04/2005
Daniel.felgar
if trFB.InTransaction then
trFB.Commit;
Gostei + 0
08/04/2005
Ariovaldo
Gostei + 0
08/04/2005
Ariovaldo
if trFB.InTransaction then
trFB.CommitRetaining;
Gostei + 0
08/04/2005
Daniel.felgar
Gostei + 0
08/04/2005
Ariovaldo
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)