I'm writing a D2 app with paradox.
I won't to update a all fields called index in a table. But the values
must increment.
If I use a TQuery I can do this:
var
i: Integer;
begin
i := 1;
mytable.First;
while not mytable.eof do begin
mytable.Edit;
mytable.FieldByName('Indeks').AsInteger := i;
mytable.Post;
mytable.Next;
Inc(i);
end;
end;
...but this is slow because the table is very big. Is there another way
to do this like:
update index increment by 1
or something (in my dreams)
Thanks!
--
J?rgen Aase
Schleppegrellsgt 2B
0556 OSLO
22 71 44 28