Autor Beitrag
Apollo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 125

Windows 7
Delphi 3 Prof., Delphi 2005
BeitragVerfasst: So 23.12.07 10:41 
Hallo Delphianer,
ich habe ein Rechenprogramm geschrieben, bei dem Ergebnis in einem Panel angezeigt wird.
Wenn ich auf einen Button klicke, will ich das das Panel "gecleart" ist. Bei einem Edit ist das
kein Problem, einfach "Edit1.clear". Aber warum funktioniert nicht "Panel1.clear"????
Stehe ganz schön auf dem Schlauch.
Danke im voraus!


Moderiert von user profile iconGausi: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am So 23.12.2007 um 10:45
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: So 23.12.07 10:43 
ausblenden Delphi-Quelltext
1:
FreeAndNil(Panel);					


ich würde das auch beim Edit machen, das Free ist wichtig, sonst gibts später ärger.

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 23.12.07 10:44 
Probiers mal mit Panel1.Caption := '';

_________________
We are, we were and will not be.
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: So 23.12.07 11:17 
Definiere erstmal wie du die Anzeige aufs Panel bekommen hast.