salut à tous,

ce bout de code me génère un message d'erreur :

"SQLDA missing or incorrect version, or incorrect number/type of variable"

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
  SQLQ:= TSQLQuery.Create(Self);
  SQLQ.SQLConnection:= MonDM.SQLConnect;
  SQLQ.Close;
  SQLQ.SQL.Clear;
  SQLQ.Params.Clear;
  SQLQ.SQL.Add('delete from PROFIL where ID_PROFIL = :ID');
  SQLQ.Params.CreateParam(ftInteger,'ID',ptInput);
  SQLQ.Params.ParamByName('ID').AsInteger:= MonID;
 
  SQLQ.ExecSQL();
ce code est il incorrect ?

Merci !