Ver Mensaje Individual
  #3  
Antiguo 29-06-2004
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
El texto del Label lo puedes asignar por código mediante su propiedad Caption:

Código Delphi [-]
Label1.Caption := 'Hola';

Para obtener el texto puedes usar un objeto TStringList para leer el archivo:

Código Delphi [-]
var
  Archivo: TSringList;

begin
  Archivo := TStringList.Create;
  try
    Archivo.LoadFromFile('TuArchivo.txt');
    Label1.Caption := Archivo.Text;
  finally
    Archivo.Free;
  end;
end;

// Saludos
Responder Con Cita