Hi again! As you probably noticed I'm opening several topics and they are about rather basic questions, hey, I'm new to Delphi and Lazarus so please bear with me.

This time I want to know this: Is it possible to have dynamic arrays of user-defined records? I wrote this code to see if I could get the answer, but the compiler fails.
type
TBanco = Record
Numero : Integer;
Nombre : String;
Domicilio : String;
end;
function ObtenerBancosDBF(var Salida: array of TBanco): Integer;
var
Limite: Integer;
DatosOrigen: TDbf;
begin
Limite := 0;
// Open DBF
While not(DatosOrigen.EOF) do begin
Inc(Limite);
SetLength(Salida,Limite);
Salida[Limite-1].Numero := FieldByName('Numero').AsString;
Salida[Limite-1].Nombre := FieldByName('Nombre').AsString;
Salida[Limite-1].NombreCorto := FieldByName('Domicilio').AsString;
DatosOrigen.Next;
end;
DatosOrigen.Close;
end;This specific line gives me a "type mismatch" error.
SetLength(Salida,Limite);But this is supposed to work, according to some stuff that I read on the Internet. What is wrong here?
Thanks

- idealis