TUniLoader without Events in single procedure
Posted: Fri 13 Jul 2012 14:24
Hi. What's the downside of using TUniLoader like this?
Code: Select all
myLoader:= TUniLoader.Create(nil);
myLoader.Connection:= someConnection;
myLoader.TableName:= 'some_table';
myLoader.CreateColumns;
//
for count_row := 1 to something do
begin
myLoader.PutColumnData('field1', count_row, val1);
myLoader.PutColumnData('field2', count_row, val2);
end;
//
myLoader.Load;
myLoader.Free;