arquivo txt

Delphi

04/11/2003

Ola amigos!!!


Como posso copiar informações de um arquivo .txt para uma tabela do paradox



Obrigado!!!!


Uiliangurjon

Uiliangurjon

Curtidas 0

Respostas

Bacalhau

Bacalhau

04/11/2003

var l : textfile;
s : string;

assignfile(l,´ARQUIVO.TXT´);
reset(l);

while not eof(l) do
begin
readln(l,s); // leu string
table1.edit;
table1.fieldbyname(nome).asstring := s; // se for string
table1.fieldbyname(nome).asfloat := floattostr(s); // se for float
table1.fieldbyname(nome).asinteger := inttostr(s); // se for inteiro
table1.post;
end;

closefile(l);


GOSTEI 0
POSTAR