je voudrais dans une procédure utiliser un parmi plusieurs tableaux suivant une selection .
Exemple,Avec
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
procedure TForm3.Button5Click(Sender: TObject);
  Const Tab1:Array[0..7] of extended = (21.5,21.6,21.8,22.1,22.6,23.5,23.1,22.9);
  Tab2:Array[0..7] of extended = (11.5,1.6,211,20,22.6,25.5,23.1,22.9);
  Tab3:Array[0..7] of extended = (25.5,25.6,208,20.1,20.6,23.5,23.1,22.9);
 
 Var 
   tab:Array[0..7]of extended ;
begin
 If RadioGroup1.ItemIndex =0 then Tab:=Tab1;
 If RadioGroup1.ItemIndex =1 then Tab:=Tab2;
 If RadioGroup1.ItemIndex =2 then Tab:=Tab3;
le compilateur m'indique ;types incompatibles, pourtant j'affecte un tableau à une variable tableau d'une même taille ?
quelle est la bonne méthode?
Merci