Ver Mensaje Individual
  #1  
Antiguo 13-11-2012
lunicirus lunicirus is offline
Miembro
NULL
 
Registrado: sep 2012
Posts: 20
Reputación: 0
lunicirus Va por buen camino
Thumbs up Array con diferentes tipos

Hola quiero hacer un Array con diferentes tipos para poder desabilitarlos por partes rapidamente:

Código:
var
 RugosidadControl: Array[0..4] of TObjects;

begin

NombreArray[0]:= Label1;
NombreArray[1]:= Edit1;
NombreArray[2]:= label2;
NombreArray[3]:= Label3;
NombreArray[4]:= Edit2;

 if Ecuaciones[1] = true then
 begin
   for i:= 0 to 2 do
      i.Enabled := false;

   for j:= 3 to 4 do
      j.Enabled := true;
 end
 else begin
   for i:= 0 to 2 do
      i.Enabled := true;

   for j:= 3 to 4 do
      j.Enabled := false;
 end;
pero no se como hacer la declaracion del array, o si se puede hacer de esta forma.
Gracias
Responder Con Cita