Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Sa 24.01.04 07:08 
Liebe Leser!
Ich arbeite mit 3 Tables, Ausgabe im dbgrid. Gibt es eine Möglichkeit, einen neuen Datensatz sofort im Table mit einem Wert, z.B. Anzahl = 0 zu initialisieren? Mit Stringgrid wäre das ja kein Problem, aber direkt??

Dank für eure Hilfe, D. Annies :?
tomtom62
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278

WIN 2000, XP prof
D5 prof.
BeitragVerfasst: Sa 24.01.04 09:11 
Du könnest in OnBeforePost bestimmte Werte setzen z.B.

ausblenden Delphi-Quelltext
1:
Tabelle1.FieldByName('test').asString:='testwert';					


Das gleiche ginge in OnAfterInsert..

Ist es das was Du gesucht hast ?
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Sa 24.01.04 17:28 
Hi, tomtom62, du hast mir schon einmal helfen können - heute auch!

Du warst ja heute auch schon früh an der Möhre!

Dank für deine Hilfe, D. Annies!
tomtom62
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278

WIN 2000, XP prof
D5 prof.
BeitragVerfasst: So 25.01.04 08:20 
Hallo,

ist ein Fall von "seniler Bettflucht". Kommt leider immer häufiger vor.. :D

Freut mich, dass ich Dir helfen konnte..