Salut a tous , j ais um probleme avec le code suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
with datamodule1.ADOQuery do begin
 
                    close;
                   SQL.Clear;
 
                       SQL.add('select * from Matable where ID =:idt') ;
                         Parameters.ParamByName('idt').Value := IDMatable;
                      open;
                       Active :=true;
                           First;
                           while not Eof do begin
                               Var :=  fieldbyname('MonChamp').asstring;
                               next;
                             end;
ma variable Var n est actualizé qu au final de ma requete , comment je pourrais garder les divers retour de Monchamp sachant que j ais plusieurs fields.

Merci a tous