Subject fieldsreadonly.add sneller laten werken
Author L.M. Bemmelmans
Hello,

Unfortunalety I user TIBOquery so I can't use the prepareedits := false
property.

I manipulate the fieldsreadonly property of TIBOquery to force IBO to update
only changed datafields (see my other thread).
It works great, updating FB is fast enough, but my code is too slow. The add
method is very slow, and I think there must be faster ways.

with dataset as Tiboquery do
begin
//fast
fieldsreadonly.clear //very fast
//takes 5 seconds for 200 fields
for i := 0 to fieldcount-1 do
if OldFieldValues[i] = fields[i].value then
fieldsreadonly.add(fields[i].fieldname + '=True;Noedit');
end;


Greetings,

Leon