Autor Beitrag
Grafix
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

Windows 7 Professional
Delphi 2009, PHP, Prolog, Python, Java
BeitragVerfasst: So 10.05.09 21:59 
Und nochmal hey =)

Ich habe in Form 1 eine DBAbfrage. In Form2 kann ich neue Einträge zur DB hinzufügen. Beim Schließen von Form2 soll Form1 aktualisiert werden, so dass Form1 auch die neuen Einträge anzeigt. Habs mit Form1.Refresh; probiert, hat aber leider keine Wirkung. Wie kann man das am Besten lösen?
lG
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 10.05.09 22:11 
Du musst auch auf die Datenbank zugreifen. Form1.Refresh direkt zeichnet die Komponenten und das Formular neu...

Das wird also irgendeine Methode deiner Datenbankanzeige-Komponente sein, ich weiß ja nicht was du da gerade benutzt.