Autor Beitrag
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Do 21.08.03 12:43 
grrrrrrrrr

kann mir mal einer erklären warum ich ein dbgrid benötige, wenn ich in einem adoquery werte mit parambyvalue übergebe.

das ist doch vollkommen blödsinnig.

_________________
hans bist du das ?


Zuletzt bearbeitet von inselberg am Fr 22.08.03 08:46, insgesamt 1-mal bearbeitet
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 21.08.03 13:35 
Warum brauchst Du da ein Grid? Erklär mal bitte, warum es nicht ohne funktioniert?
inselberg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Do 21.08.03 13:59 
also

ich habe 2 identische adoqueries, wo bei adoquery1 mit einem dbgrid verbunden ist. nun führe ich "untiges" aus und die daten werden eingefügt. setze ich aber AdoQuery2 ein bekomme ich den fehler
Zitat:
Parameter 'id' not found

hol ich mir nun ein neues (leeres) dbgrid verknüpfe es mit AdoQuery2, geht es wieder.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
 with AdoQuery1 do
 begin
  Close;
  SQL.text := 'INSERT INTO `cds` VALUES ( :id , :link, :imdb, :language, :quality, :format, :erfasst, :cds, :bem);';

  with Parameters do
  begin
   ParamByName('link').Value := link;
   ParamByName('imdb').Value := eIMDB.text;
   ParamByName('language').Value := eSprachen;
   ParamByName('cds').Value  := eCds.text;
   ParamByName('bem').Value  := mBem.Text;
   ...
  end;
  execsql;
 end;


Moderiert von user profile iconTino: Quote- & Delphi-Tags hinzugefügt.

_________________
hans bist du das ?
inselberg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Fr 22.08.03 08:45 
:oops:

alles mein fehler ... man sollte eben kein query in einer unterfunktion verändern und das dann vergessen

:oops:

_________________
hans bist du das ?