Einzelnen Beitrag anzeigen

nahpets
(Gast)

n/a Beiträge
 
#4

Re: [ADO] Attribut IS IN (:Parameter) - Funktioniert nicht

  Alt 5. Jan 2009, 13:00
Hallo,

mach's doch so:
Delphi-Quellcode:
  fCommandText : String; // Als Property der Klasse.

[...]
  // Im Konstruktor statt FDSIDList.CommandText := ...
  fCommandText := 'SELECT * FROM Cards WHERE ID IN (:IDList)';
[...]

  // FDSIDList.Parameters.ParamByName('IDList').Value := IDs;
  // stattdessen
  FDSIDList.CommandText := AnsiReplaceText(fCommandText,':IDList',IDs);
  Mit Zitat antworten Zitat