Autor Beitrag
Kayo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Sa 23.04.05 18:56 
Hallo, ich würde mir gerne beim schließen des Formulars das letzte selektierte Editfeld zurückgeben lassen um zB. die letzten eingegeben Daten noch in eine DB zu speichern, oder der gleichen.
3rdnuss
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 139



BeitragVerfasst: Sa 23.04.05 19:16 
Hast du es schon mit dem OnClose Ereignis der Form getestet?
Das müsste eigentlich gehen.

MfG Felix
Kayo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Sa 23.04.05 19:21 
Ja gut das weiß ich auch aber ich weiß nicht welches Feld zuletzt selektiert war.
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Sa 23.04.05 19:39 
du könntes bei onclick den komponenten index abspeichern also so:
du klick auf eine komponente, wird einfach der komponenten index abgespeichert oder die komponenten selbst.

_________________
MFG
Michael Springwald, "kann kein englisch...."
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 23.04.05 22:54 
Hallo,

der einfache Weg:
ausblenden Delphi-Quelltext
1:
DerLetzteEintrag := TEdit(ActiveControl).Text;					

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: So 24.04.05 02:16 
Sieht so aus, als ob das von der Erdnuss 8) das sinnvollste wäre. Wichtiger wäre es aber erstmal zu wissen, ob es sich um Edits oder DBedits handelt. Aber egal wie, ich würde einen "Speichern" Button machen und das ganze da abhandeln.

_________________
Gruß
Hansa