Yo también supongo que se refiere a TSQLConnection. La revisión en Delphi 7 te va a llevar a pensar que Rolando se ha equivocado, pero no, en Delphi 2007, por extraño que parezca han puesto
Código Delphi
[-]
ISList:= TWideStringList.Create;
try
try
ISList.BeginUpdate;
ISList.Duplicates := dupIgnore;
ISList.CaseSensitive := False;
while not DataSet.Eof do
begin
ISList.Add(TPlatformField.AsWideString(NameField));
DataSet.Next;
end;
ISList.Sorted := True;
finally
ISList.EndUpdate;
end;
try
List.BeginUpdate;
List.Clear;
List.AddStrings(ISList);
finally
List.EndUpdate;
end;
finally
ISList.Free;
end;
cosa que realmente no entiendo el porqué. ISList es un objeto temporal y sus elementos se asignan inmediatamente después a la lista original List que se proporciona a GetFieldNames, de manera que no alcanzo a ver cuál podría ser la necesidad de ordenar la lista.
Bye