Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by DeddyH,
10. Aug 2008
Dann hätte #3 aber funktionieren müssen. Hier habe ich die falsche Verwendung von with im Verdacht, da so dann wohl herauskämecomponents.components
Schlechtschreibung
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by DeddyH,
10. Aug 2008
Der Cast ist tatsächlich unnötig, ich finde aber, das erhöht die Lesbarkeit, deshalb mach ich das immer so ;)
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by DeddyH,
10. Aug 2008
Code markieren und auf den Button "Delphi" klicken oder von Hand in und einschließen. Hast Du übrigens meinen Code mal ausprobiert?
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by DeddyH,
10. Aug 2008
for x := componentcount-1 downto 0 do
begin
if ((components)is TLabel) and (components.Name<>'Label1') and (components.Name<>'Label2') and
(components.Name<>'Label3') and (components.Name<>'Label4') and (components.Name<>'Label5') and
(components.Name<>'Label6') then
TLabel(components).free;
end;
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
Delphi
by DeddyH,
10. Aug 2008
Hast Du die Labels beim Anlegen benannt?
Denkfehler, spielt keine Rolle, sry