Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 17-10-2005
elguille elguille is offline
Miembro
 
Registrado: ene 2005
Posts: 114
Poder: 20
elguille Va por buen camino
Violacion De Acceso

PORQUE EL SIGUIENTE CODIGO NO DA ERROR

Código Delphi [-]
  PROCEDURE impform;
  var I:INTEGER;
      miform:tform;
  BEGIN
  I:=0;
  WHILE i <= Screen.FormCount - 1 do BEGIN
    MIFORM:=TFORM(Screen.Forms[i]);
      if MIFORM.Active then begin
          MIFORM.PrintScale:=poprinttofit;
          MIFORM.Print;
          I:=Screen.FormCount;
      end else
        i:=i+1;
  end;
  END;

Y ESTE DA ERROR VIOLACION DE ACCESO ¿¿¿ ???

Código Delphi [-]
  PROCEDURE impform;
  var I:INTEGER;
  BEGIN
  I:=0;
  WHILE i <= Screen.FormCount - 1 do BEGIN
      if TFORM(Screen.Forms[i]).Active then begin
          TFORM(Screen.Forms[i]).PrintScale:=poprinttofit;
          TFORM(Screen.Forms[i]).Print;
          I:=Screen.FormCount;
      end else
        i:=i+1;
  end;
  END;

Última edición por Neftali [Germán.Estévez] fecha: 17-10-2005 a las 16:17:03.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 21:27:26.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi