Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Atualizar Tabela
Fri, Oct 6 2006 3:33 PMPermanent Link

"Newton"
to fazendo uma procedure para ataulizar o Banco de
Dados do DBISAM e não está dando certo... Alguem poderia me ajudar ???

[]s.
Newton
Tangará da Serra - MT - Brasil
Procedure Form1.AtualizaDados
var
 listaTabela: TStrings;
begin            //    Da Erro nesta linha
  ListaTabela:=TStringList.Create;
  try
     with MyDatabase do
        begin
        ListaTabela.Add('TABELA1');
        ListaTabela.Add('TABELA2');
        StartTransaction(ListaTabela);
        try
           { Atualizo o Banco de Dados  }
           Commit;
        except
           Rollback;
           raise;
        end;
  finally
     ListaTabela.Free;
  end;
end;


Sat, Oct 7 2006 3:27 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Newton


It would probably help (me at least) if you posted in English

Roy Lambert
Sat, Oct 7 2006 9:14 AMPermanent Link

"Jose Eduardo Helminsky"
Newton

O erro está na declaração "listaTabela: TStrings;" que deveria ser
"listaTabela: TStringList".
Acho melhor você me mandar um e-mail ao invés de postar isto aqui no News.
Aqui só se fala Inglês.

For non-portuguese native language users:
The error is inside the declaration of "listaTabela: TString", it should be
"listaTabela: TStringList;

I think it is a better way you send me a private e-mail instead of posting
here in the NG. Here they (including me) only wrote in English.

Eduardo

Image