Bonjour
0
Un petit Pb a la définition d'un type record.
je désir défini ce record dans ce genre:
TAttribRec = record
Attrib_Name: string[15];
Attrib_Def_Value: string[25];
end;
var
attribArray: array[0..3] of TAttribRec =
(
( Attrib_Name: 'attrib_0'; Attrib_Def_Value: 'Attrib_Def_Value_0' ),
( Attrib_Name: 'attrib_1'; Attrib_Def_Value: 'Attrib_Def_Value_1' ),
( Attrib_Name: 'attrib_2'; Attrib_Def_Value: 'Attrib_Def_Value_2' )
);
TElemRec = record
Elem_Name: string[15];
Attribs: TAttribRec
end;
var
elemArray: array[0..1] of TElemRec =
(
Elem_Name: 'Elem_Name_0'; Attribs: => Je ne voudrais pour cet elemRec n'avoir que les 0 et 1 de attribArray
);
Une idée de comment faire ?