![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
#1
|
|||
|
|||
|
Liberar formularios
hola gente tengo un problema.
tengo una aplicacion que crea en tiempo de ejecucion todos los forms menos el principal. ahora, cuando el usuario cierra la sesion, de esta aplicacion, quiero liberar la todos los forms y además asignarles nil. hasta ahora probe lo siguiente sin exito. Código:
tot := Application.ComponentCount -1;
for i := 0 to tot do begin
if (i < Application.ComponentCount) and (Application.Components[i] <> nil) and (Application.Components[i] is TForm) and (Application.Components[i].Name <> 'fPrincipal') then begin
faux := (Application.Components[i] as tform);
(Application.Components[i] as tform).Free;
faux := nil;
end;
end;
como puedo resolver este problema? gracias de antemando por su ayuda.
__________________
El secreto de la libertad está en no tener miedo. |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
|