Ver Mensaje Individual
  #1  
Antiguo 27-01-2009
Maria85 Maria85 is offline
Miembro
 
Registrado: ene 2009
Posts: 15
Reputación: 0
Maria85 Va por buen camino
Exclamation Necesito ayuda

hOLA a todos!!

Tengo un problemilla con un método. Me da un error en el case of y no se porque. El código es el siguiente:

procedure TTFormEnvConfig.SeleccionarDirectorio(Sender: TObject);
var
opcion: string;

begin
case (Sender as TComponent).Tag of
1: opcion:=DirTrabajo.text;
2: opcion:=DirTmp.text;
3: opcion:=DirIconos.text;
4: opcion:=DirConsola.text;
5: opcion:=DirInternet.text;
6: begin
DirCompilador.InitialDir := rutaCompilador;

if DirCompilador.Execute then
editDirCompilador.Text := DirCompilador.FileName;
end;

end;
end;


El error me lo da donde está la linea roja...("Error:Original type required")

Gracias de antemano a todos

Un saludo
Responder Con Cita