Avec une boucle imbriqué...
for x:=0 to ... do for y:=0 to ... do array[x][y] := someThing;
|
Utilise High(); pour avoir les limites de ton tableau.
function High(X);
Description
Call High to obtain the upper limit of an Ordinal, Array, or string value. The result type is X, or the index type of X.
X is either a type identifier or a variable reference. The type denoted by X, or the type of the variable denoted by X, must be one of the following:
For this type High returns
Ordinal type (includes Int64) The highest value in the range of the type
Array type The highest value within the range of the index type of the array. For empty arrays, High returns ?1.
String type The declared size of the string
Open array The value, of type Integer, giving the number of elements in the actual parameter minus one
String parameter The value, of type Integer, giving the number of elements in the actual parameter minus one
(Tiré de delphi.hlp)
-----------------------------------------------
Mathieu Landry - Programmeur-Analyste
Microsoft Certified Professionnal, Comptia A+ Certified
-------------------------------
Réponse au message :
-------------------------------
> je voudrais créer une procedure pour remplir un tableau dynamique (une matrice 12x12 et plus) je ne sais quoi faire
>
>
Tendrement
>
>