Mi esce questo errore ma il codice è il seguente:
Uso il database paradox e le componenti BDE.
procedure TForm1.Button1Click(Sender: TObject);
var i,l:integer;
begin
namelist:= TStringList.Create;
FilesList:= TStringList.Create;
Table1.Open;
Table1.Edit;
for i:= 0 to FilesList.Count-1 do
begin
Table1.Insert;
l:= Table1.RecordCount+1;
Table1ID.Value:= IntToStr(l+i);
Table1Name.Value:= nameList.Strings[i]; <- mi indica questa riga come riga d'errore
Table1Dir.Value:= FilesList.Strings[i];
Table1.Post;
end;
FilesList.Free;
NameList.Free;
end;
sbaglio qualcosa?
Grazie anticipatamente!