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: So 21.05.06 07:38 
Hi, Delpher,

eine kurze Nachfrage:

wie kann ich als Parameter das Buch (den Titel) übergeben, welches im DBGrid (wo eine Query angezeigt wird), gerade aktuell ist, also vor dem die kleine Pfeilspitze zu sehen ist?

Also so etwas wie:
parambyname('Titel').asstring := query1.fieldbyname('Titel').asstring;

Danke für Hilfe,
Detlef Annies
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 21.05.06 08:15 
Ja, so loote es funktionieren.

_________________
Markus Kinzler.
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: So 21.05.06 08:22 
Hi, Markus,

leider nicht: Fehlermeldung: Query1 Das Feld Titel wurde nicht gefunden

Bis dann, Detlef
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 21.05.06 09:02 
Ich ging vom Prinzip aus, da ich deine Abfragen nicht kenne. Wie sieht die Abfrage von Query1 aus? Und wie die paramterisierte Abfrage?

_________________
Markus Kinzler.
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: So 21.05.06 12:10 
Hi, Markus,

du hattest (natürlich) recht, ich hatte mich vertippt und die falsche Query genommen / eingesetzt.

Danke für deine Mühe, Detlef