arquivo txt
Ola amigos!!!
Como posso copiar informações de um arquivo .txt para uma tabela do paradox
Obrigado!!!!
Como posso copiar informações de um arquivo .txt para uma tabela do paradox
Obrigado!!!!
Uiliangurjon
Curtidas 0
Respostas
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);
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