Tema: crear array
Ver Mensaje Individual
  #2  
Antiguo 10-02-2006
samantha jones samantha jones is offline
Miembro
 
Registrado: ago 2004
Posts: 46
Reputación: 0
samantha jones Va por buen camino
cuando usas

Código Delphi [-]
var
  aArray : array of string;

te refieres q que es un arreglo dinámico, osea que no conoces sus dimensiones por lo que tendrás que hacer un setlength

Código Delphi [-]
begin 
  SetLength(aarray, 10)
  aArray[0]:='UNO';
end;

y si fuera estático lo declaras asi

Código Delphi [-]
var
  aArray_1dimension [1..5] of integer;
  aArray_2dimension [1..5, 1..3] of integer

Saludos
Samantha
Responder Con Cita